diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/mimeapps.list | 26 | ||||
| -rw-r--r-- | config/qutebrowser/config.py | 1 | ||||
| -rw-r--r-- | config/xmonad/xmonad.hs | 4 | ||||
| -rw-r--r-- | config/zsh/.zshrc | 18 |
4 files changed, 41 insertions, 8 deletions
diff --git a/config/mimeapps.list b/config/mimeapps.list new file mode 100644 index 0000000..db8d517 --- /dev/null +++ b/config/mimeapps.list @@ -0,0 +1,26 @@ +[Default Applications] + +# from: https://git.lukesmith.xyz/dotfiles/file/.config/mimeapps.list + +# xdg-open will use these settings to determine how to open filetypes. +# These .desktop entries can also be seen and changed in ~/.local/share/applications/ + +# text/x-shellscript=text.desktop; +# x-scheme-handler/magnet=torrent.desktop; +# application/x-bittorrent=torrent.desktop; +x-scheme-handler/mailto=st-mutt.desktop; +# text/plain=text.desktop; +application/postscript=zathura.desktop; +application/pdf=zathura.desktop; +application/epub+zip=zathura.desktop; + +image/png=sxiv.desktop; +image/jpeg=sxiv.desktop; +image/gif=sxiv.desktop; +image/svg+xml=sxiv.desktop; + +application/rss+xml=newsboat.desktop + +video/x-matroska=mpv.desktop +# x-scheme-handler/lbry=lbry.desktop +# inode/directory=file.desktop diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index de73eb6..3d20f10 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -15,6 +15,7 @@ c.url.searchengines = { "DEFAULT": "https://searx.cacharle.xyz?q={}", "d": "https://duckduckgo.com/?q={}", "g": "https://google.com/?q={}", + "sp": "https://www.startpage.com/sp/search?q={}", "y": "https://www.youtube.com/results?search_query={}", "w": "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1", "wfr": "https://fr.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1", diff --git a/config/xmonad/xmonad.hs b/config/xmonad/xmonad.hs index f71ce1d..d285569 100644 --- a/config/xmonad/xmonad.hs +++ b/config/xmonad/xmonad.hs @@ -65,7 +65,9 @@ keys' = [ ("<XF86AudioLowerVolume>", spawn "pulseaudio-ctl down") , ("M-i", spawn $ myTerminal ++ " -e zsh -c 'source ~/.config/zsh/.zshrc && rc'") , ("M-m", spawn $ myTerminal ++ " -e mocp -C /home/cacharle/.config/moc/config") , ("M-S-d", spawn "notify-send -i x-office-calendar \"$(date +\"%H:%M %A %d/%m/%Y %B\")\"") - , ("M-S-b", spawn "notify-send --hint=int:transient:1 --hint=int:value:\"$(cat /sys/class/power_supply/BAT0/capacity)\" \"Battery\"") + , ("M-S-b", spawn $ "notify-send --hint=int:transient:1 " ++ + "--hint=int:value:\"$(cat /sys/class/power_supply/BAT0/capacity)\" " ++ + "\"Battery: $(cat /sys/class/power_supply/BAT0/status)\"") , ("M-q", spawn "notify-send 'Restarting xmonad'" >> spawn restartCmd) , ("M-S-q", confirm "Are you sure you want to shutdown?" $ io (exitWith ExitSuccess)) ] diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index 7cc7bab..0b28a0f 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -68,13 +68,6 @@ chpwd() { # shellcheck disable=SC2034,SC2039,SC3030 fignore=(o hi) # ignore extensions in autocomplete -# pluggins -# shellcheck source=/dev/null -. "$XDG_DATA_HOME/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" # prompt syntax highlight - -export YSU_MESSAGE_POSITION="after" # you-should-use message after command output -. "$XDG_DATA_HOME/zsh/zsh-you-should-use/you-should-use.plugin.zsh" # alias reminder - # set tab to 4 spaces tabs 4 @@ -82,3 +75,14 @@ GPG_TTY=$(tty) # fixing gpg fatal error about tty export GPG_TTY export BAT_THEME='gruvbox-dark' # gruvbox theme for bat (fancy cat) + +# pluggins +# shellcheck source=/dev/null +. "$XDG_DATA_HOME/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" # prompt syntax highlight + +export YSU_MESSAGE_POSITION="after" # you-should-use message after command output +. "$XDG_DATA_HOME/zsh/zsh-you-should-use/you-should-use.plugin.zsh" # alias reminder + +# install pkgfile package on Arch Linux +# run `pkgfile --update` +. /usr/share/doc/pkgfile/command-not-found.zsh |
