From afa6ce6902ceb7c9ab2d91235d624bd2bf001f1e Mon Sep 17 00:00:00 2001 From: lanxu Date: Sun, 15 Dec 2019 17:33:04 +0200 Subject: [PATCH] New font configuration. Fixed mime associations --- .config/dunst/dunstrc | 3 ++ .../fontconfig/avail/69-emoji-monospace.conf | 20 ++++++++ .config/fontconfig/avail/69-emoji.conf | 25 ++++++++++ .config/fontconfig/avail/70-no-dejavu.conf | 30 ++++++++++++ .../fontconfig/avail/70-no-mozilla-emoji.conf | 25 ++++++++++ .../fontconfig/conf.d/69-emoji-monospace.conf | 1 + .config/fontconfig/conf.d/69-emoji.conf | 1 + .config/fontconfig/conf.d/70-no-dejavu.conf | 1 + .../conf.d/70-no-mozilla-emoji.conf | 1 + .config/fontconfig/fonts.conf | 27 +++++++++++ .config/i3/config | 47 +++++++++++++++---- .config/mimeapps.list | 2 +- .config/ranger/rc.conf | 5 +- .config/ranger/scope.sh | 3 +- .config/zathura/zathurarc | 7 +-- .vimrc | 3 +- .zshrc | 1 + 17 files changed, 184 insertions(+), 18 deletions(-) create mode 100644 .config/fontconfig/avail/69-emoji-monospace.conf create mode 100644 .config/fontconfig/avail/69-emoji.conf create mode 100644 .config/fontconfig/avail/70-no-dejavu.conf create mode 100644 .config/fontconfig/avail/70-no-mozilla-emoji.conf create mode 120000 .config/fontconfig/conf.d/69-emoji-monospace.conf create mode 120000 .config/fontconfig/conf.d/69-emoji.conf create mode 120000 .config/fontconfig/conf.d/70-no-dejavu.conf create mode 120000 .config/fontconfig/conf.d/70-no-mozilla-emoji.conf diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 53a1ba3..1d3be32 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -420,3 +420,6 @@ # set_stack_tag = "volume" # # vim: ft=cfg +[sound] + summary = "*" + script = ~/Scripts/dunst_message.sh diff --git a/.config/fontconfig/avail/69-emoji-monospace.conf b/.config/fontconfig/avail/69-emoji-monospace.conf new file mode 100644 index 0000000..18dd393 --- /dev/null +++ b/.config/fontconfig/avail/69-emoji-monospace.conf @@ -0,0 +1,20 @@ + + + + + + + + monospace + + emoji + Liberation Mono + Fira Mono + + + + diff --git a/.config/fontconfig/avail/69-emoji.conf b/.config/fontconfig/avail/69-emoji.conf new file mode 100644 index 0000000..b688183 --- /dev/null +++ b/.config/fontconfig/avail/69-emoji.conf @@ -0,0 +1,25 @@ + + + + + + + + sans-serif + + emoji + + + + + serif + + emoji + + + + diff --git a/.config/fontconfig/avail/70-no-dejavu.conf b/.config/fontconfig/avail/70-no-dejavu.conf new file mode 100644 index 0000000..d09ec74 --- /dev/null +++ b/.config/fontconfig/avail/70-no-dejavu.conf @@ -0,0 +1,30 @@ + + + + + + + + + + + DejaVu Sans + + + + + DejaVu Serif + + + + + DejaVu Sans Mono + + + + + + diff --git a/.config/fontconfig/avail/70-no-mozilla-emoji.conf b/.config/fontconfig/avail/70-no-mozilla-emoji.conf new file mode 100644 index 0000000..4eea6ed --- /dev/null +++ b/.config/fontconfig/avail/70-no-mozilla-emoji.conf @@ -0,0 +1,25 @@ + + + + + + + + + + + EmojiOne Mozilla + + + + + Twemoji Mozilla + + + + + + diff --git a/.config/fontconfig/conf.d/69-emoji-monospace.conf b/.config/fontconfig/conf.d/69-emoji-monospace.conf new file mode 120000 index 0000000..d75e5f8 --- /dev/null +++ b/.config/fontconfig/conf.d/69-emoji-monospace.conf @@ -0,0 +1 @@ +../avail/69-emoji-monospace.conf \ No newline at end of file diff --git a/.config/fontconfig/conf.d/69-emoji.conf b/.config/fontconfig/conf.d/69-emoji.conf new file mode 120000 index 0000000..7f5e3d4 --- /dev/null +++ b/.config/fontconfig/conf.d/69-emoji.conf @@ -0,0 +1 @@ +../avail/69-emoji.conf \ No newline at end of file diff --git a/.config/fontconfig/conf.d/70-no-dejavu.conf b/.config/fontconfig/conf.d/70-no-dejavu.conf new file mode 120000 index 0000000..b9479d5 --- /dev/null +++ b/.config/fontconfig/conf.d/70-no-dejavu.conf @@ -0,0 +1 @@ +../avail/70-no-dejavu.conf \ No newline at end of file diff --git a/.config/fontconfig/conf.d/70-no-mozilla-emoji.conf b/.config/fontconfig/conf.d/70-no-mozilla-emoji.conf new file mode 120000 index 0000000..7118730 --- /dev/null +++ b/.config/fontconfig/conf.d/70-no-mozilla-emoji.conf @@ -0,0 +1 @@ +../avail/70-no-mozilla-emoji.conf \ No newline at end of file diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf index 402ad78..bbb7239 100644 --- a/.config/fontconfig/fonts.conf +++ b/.config/fontconfig/fonts.conf @@ -29,4 +29,31 @@ hintnone lcdlight + + + + sans-serif + + Liberation Sans + + Liberation Sans + + + + serif + + Liberation Serif + + Liberation Serif + + + diff --git a/.config/i3/config b/.config/i3/config index df8be57..cf846e0 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -42,15 +42,21 @@ exec --no-startup-id "xscreensaver -no-splash" # Screensaver exec --no-startup-id "./Scripts/xscreensaverstopper.sh" # Screensaver inhibitor exec --no-startup-id "compton -b" # Compositor exec --no-startup-id "nitrogen --restore" # Wallpaper +exec --no-startup-id "udiskie --notify --automount" # Automounter +# dunst is used for notifications + +# Background software +exec --no-startup-id "blueman-manager" # Bluetooth +exec --no-startup-id "cantata" +exec --no-startup-id "nextcloud" +exec --no-startup-id "pavucontrol" # Applications -exec --no-startup-id "nextcloud --background" exec --no-startup-id "telegram-desktop" -exec --no-startup-id "cantata" set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status bindsym XF86AudioStop exec --no-startup-id mpc stop @@ -153,7 +159,7 @@ set $ws6 "6:lutris" set $ws7 "7" set $ws8 "8" set $ws9 "9" -set $ws10 "10" +set $ws10 "10:tray" # switch to workspace bindsym Mod4+1 workspace $ws1 @@ -226,23 +232,44 @@ bindsym Mod4+o move workspace to output left ####################################################################### #exec i3-config-wizard for_window [class="Arandr"] floating enable -for_window [class="cantata"] floating enable, move scratchpad -for_window [class="TelegramDesktop"] floating enable, move scratchpad +for_window [title="^Telegram$"] floating enable, move scratchpad for_window [class="itch"] floating enable # for_window [class="Wine"] floating enable for_window [class="mpv"] floating enabler, move position center for_window [class="vlc"] floating enable for_window [class="Sxiv"] floating enable -for_window [class="Steam"] move container to workspace $ws5 -for_window [title="Steam"] move container to workspace $ws5 -for_window [title="Friends List"] move container to workspace $ws5, resize set width 400px for_window [class="Lutris"] move container to workspace $ws6 for_window [class="Gimp"] move container to workspace $ws4 for_window [class="Blender"] move container to workspace $ws4 +for_window [class="krita"] move container to workspace $ws4 for_window [class="firefox"] move container to workspace $ws3 +# services +for_window [class="Nextcloud"] floating disable, move container to workspace $ws10 +for_window [class="Blueman-manager"] move container to workspace $ws10 +for_window [class="Pavucontrol"] move container to workspace $ws10e +for_window [class="cantata"] floating disable, move container to workspace $ws10 + +# Steam +# https://github.com/ValveSoftware/steam-for-linux/issues/1040 +for_window [class="^Steam$" title="^Friends$"] floating enable +for_window [class="^Steam$" title="Steam - News"] floating enable +for_window [class="^Steam$" title=".* - Chat"] floating enable +for_window [class="^Steam$" title="^Settings$"] floating enable +for_window [class="^Steam$" title=".* - event started"] floating enable +for_window [class="^Steam$" title=".* CD key"] floating enable +for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable +for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable +for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable +for_window [title="^Steam Keyboard$"] floating enable +for_window [class="^Steam$"] move container to workspace $ws5 +# for_window [title="^Friends List$"] move container to workspace $ws5, resize set width 400px + mouse_warping none +# Special keysyms +bindsym Mod4+t [class="TelegramDesktop"] scratchpad show + # gaps smart_borders on smart_gaps on diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 9eeef82..fede0a1 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -16,7 +16,7 @@ image/gif=sxiv_browser.desktop image/jpeg=sxiv_browser.desktop image/png=sxiv_browser.desktop image/svg+xml=inkscape.desktop -inode/directory=ranger_terminal.desktop +inode/directory=pcmanfm.desktop video/mp4=mpv.desktop video/quicktime=mpv.desktop video/x-msvideo=mpv.desktop diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index e6de18c..d963d9b 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -68,7 +68,7 @@ set vcs_backend_bzr disabled set vcs_backend_svn disabled # Use one of the supported image preview protocols -set preview_images false +set preview_images true # Set the preview image method. Supported methods: # @@ -349,7 +349,8 @@ map @ console -p6 shell %%s map # console shell -p%space map s console shell%space map r chain draw_possible_programs; console open_with%%space -map f console find%space +# map f console find%space +map f console scout -ftsea%space map cd console cd%space map chain console; eval fm.ui.console.history_move(-1) diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 998a3a2..a5ed026 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -253,7 +253,8 @@ handle_mime() { # Image image/*) # Preview as text conversion - img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4 + img2txt --format=utf8 --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4 + #catimg -w "${PV_WIDTH}" -- "${FILE_PATH}" && exit 4 #exiftool "${FILE_PATH}" && exit 5 exit 1;; diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 6c45001..f77c0ce 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -1,8 +1,9 @@ -set pages-per-row 2 +set pages-per-row 1 set page-cache-size 1 set adjust-open "best-fit" - -set render-loading "false" +set render-loading false +set statusbar-home-tilde true +set selection-notification true set selection-clipboard clipboard unmap f map f toggle_fullscreen diff --git a/.vimrc b/.vimrc index 3880af2..1445926 100644 --- a/.vimrc +++ b/.vimrc @@ -83,7 +83,8 @@ if has("gui_running") set guioptions-=T " remove toolbar set guioptions-=r " remove right-hand scroll bar set guioptions-=L " remove left-hand scroll bar - set guifont=Fura\ Code\ Nerd\ Font\ 11 + set guifont=Fira\ Code\ 11 + "set guifont=Fura\ Code\ Nerd\ Font\ 11 set guiheadroom=0 endif diff --git a/.zshrc b/.zshrc index f8b9c24..5f12886 100644 --- a/.zshrc +++ b/.zshrc @@ -55,6 +55,7 @@ alias emsdksetup='source $EMSDK/emsdk_env.sh' alias runwinesteam="MESA_GL_VERSION_OVERRIDE=3.3COMPAT PULSE_LATENCY_MSEC=60 run-desktop.py ~/.local/share/applications/wine/Programs/Steam/Steam.desktop" alias rbackup="restic -r rclone:hubic:ChimeraLinux" alias bat="bat --theme base16" +alias wine32="WINEPREFIX=~/.wine32 wine" # https://github.com/chriskempson/base16-shell # git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell #source $HOME/.config/base16-shell/scripts/base16-default-dark.sh