From 27c3cb4d500606871c92e451f3b766d88763148f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 4 Feb 2017 22:08:28 +0100 Subject: Add random bookmark command, mpd/client launcher script --- bin/random-bookmark | 3 +++ fish/.config/fish/config.fish | 1 - fish/.config/fish/functions/music.fish | 9 +++++++++ i3wm/.i3/config | 4 ++-- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100755 bin/random-bookmark create mode 100644 fish/.config/fish/functions/music.fish diff --git a/bin/random-bookmark b/bin/random-bookmark new file mode 100755 index 0000000..2bb545e --- /dev/null +++ b/bin/random-bookmark @@ -0,0 +1,3 @@ +#!/usr/bin/fish + +firefox ~/webarchive/data/(ls --color=never ~/webarchive/data/ | sort -R | head -n 1)/index.html ^/dev/null > /dev/null diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index f47ea1a..3f16244 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -26,5 +26,4 @@ if [ (hostname) = "obelix" ] set PATH $PATH /usr/local/bin/ /usr/local/texlive/2014/bin/x86_64-linux ~/.cabal/bin/ ~/.local/bin/ ~/.gem/ruby/2.4.0/bin/ alias i='sxiv' - alias orb='open ~/webarchive/data/(ls ~/webarchive/data/ | sort -R | head -n 1)/index.html' end diff --git a/fish/.config/fish/functions/music.fish b/fish/.config/fish/functions/music.fish new file mode 100644 index 0000000..0f54f0f --- /dev/null +++ b/fish/.config/fish/functions/music.fish @@ -0,0 +1,9 @@ +function music --description "ncmpcpp launcher" + ps -e | grep mpd > /dev/null + + if test $status -eq 1 + mpd ~/.config/mpd/mpd.conf + end + + ncmpcpp +end diff --git a/i3wm/.i3/config b/i3wm/.i3/config index ddb68b1..77f9073 100644 --- a/i3wm/.i3/config +++ b/i3wm/.i3/config @@ -24,7 +24,7 @@ bindsym $mod+s layout stacking bindsym $mod+w layout tabbed bindsym $mod+e layout default -bindsym Control+s sticky toggle; exec --no-startup-id notify-send "sticky mode toggle." +bindsym Mod1+s sticky toggle, exec --no-startup-id notify-send "sticky mode toggle."; bindsym $mod+a focus parent bindsym $mod+d focus child @@ -142,6 +142,6 @@ exec --no-startup-id volumeicon exec --no-startup-id feh --bg-center ~/.background.jpg exec --no-startup-id gvim -geometry 120x35 --servername VIMWIKI -c ":set title titlestring=VimWiki" -c ":set autowriteall" -c ":set noswapfile" ~/wiki/0.wiki exec --no-startup-id zeal -exec --no-startup-id urxvtc -name DropDownTerm +exec --no-startup-id urxvt -name DropDownTerm exec --no-startup-id xautolock -time 5 -locker "i3lock -c 000000" exec --no-startup-id ~/.cabal/bin/arbtt-capture -- cgit v1.2.3