diff options
author | Adrian Kummerlaender | 2017-02-04 22:08:28 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2017-02-04 22:08:28 +0100 |
commit | 27c3cb4d500606871c92e451f3b766d88763148f (patch) | |
tree | 8a6cc7dba5584475c7e748faad9697f5ac73e9a2 | |
parent | b5f7eef7ee6a428ad1709b9291f9ed6655d48da0 (diff) | |
download | dotfiles-27c3cb4d500606871c92e451f3b766d88763148f.tar dotfiles-27c3cb4d500606871c92e451f3b766d88763148f.tar.gz dotfiles-27c3cb4d500606871c92e451f3b766d88763148f.tar.bz2 dotfiles-27c3cb4d500606871c92e451f3b766d88763148f.tar.lz dotfiles-27c3cb4d500606871c92e451f3b766d88763148f.tar.xz dotfiles-27c3cb4d500606871c92e451f3b766d88763148f.tar.zst dotfiles-27c3cb4d500606871c92e451f3b766d88763148f.zip |
Add random bookmark command, mpd/client launcher script
-rwxr-xr-x | bin/random-bookmark | 3 | ||||
-rw-r--r-- | fish/.config/fish/config.fish | 1 | ||||
-rw-r--r-- | fish/.config/fish/functions/music.fish | 9 | ||||
-rw-r--r-- | i3wm/.i3/config | 4 |
4 files changed, 14 insertions, 3 deletions
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 |