i3 menus, musicpd control
This commit is contained in:
parent
4aaede6757
commit
98e56a3f4c
@ -55,8 +55,10 @@ bindsym $mod+Return exec i3-sensible-terminal
|
|||||||
bindsym $mod+Shift+q kill
|
bindsym $mod+Shift+q kill
|
||||||
|
|
||||||
# start dmenu (a program launcher)
|
# start dmenu (a program launcher)
|
||||||
#bindsym $mod+d exec dmenu_run
|
bindsym $mod+u exec rofi -show ssh -lines 5 -eh 2 -width 100 -padding 300 -opacity "80" -bw 0 -bc "$base01" -bg "$base02" -fg "$base07" -hlbg "$base05" -columns 2 "Terminus 8" -hlfg "#9575cd" -ssh-command "{terminal} -e '{ssh-client} {host}'"
|
||||||
bindsym $mod+d exec rofi -show run -lines 5 -eh 2 -width 100 -padding 300 -opacity "80" -bw 0 -bc "$base01" -bg "$base02" -fg "$base07" -hlbg "$base05" -columns 2 "Terminus 8" -hlfg "#9575cd"
|
bindsym $mod+i exec ~/.i3/menu.sh
|
||||||
|
bindsym $mod+o exec ~/.i3/menu_open.sh
|
||||||
|
bindsym $mod+n exec rofi -show run -lines 5 -eh 2 -width 100 -padding 300 -opacity "80" -bw 0 -bc "$base01" -bg "$base02" -fg "$base07" -hlbg "$base05" -columns 2 "Terminus 8" -hlfg "#9575cd"
|
||||||
|
|
||||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||||
@ -99,6 +101,12 @@ bindsym $mod+s layout stacking
|
|||||||
bindsym $mod+w layout tabbed
|
bindsym $mod+w layout tabbed
|
||||||
bindsym $mod+e layout toggle split
|
bindsym $mod+e layout toggle split
|
||||||
|
|
||||||
|
bindcode $mod+22 exec mpc toggle
|
||||||
|
bindcode $mod+99 exec mpc vol +10
|
||||||
|
bindcode $mod+105 exec mpc vol -10
|
||||||
|
bindcode $mod+34 exec mpc prev
|
||||||
|
bindcode $mod+35 exec mpc next
|
||||||
|
|
||||||
# toggle tiling / floating
|
# toggle tiling / floating
|
||||||
bindsym $mod+Shift+space floating toggle
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
|
||||||
|
5
_i3__abraracourcix/favs
Normal file
5
_i3__abraracourcix/favs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
caja
|
||||||
|
transgui
|
||||||
|
easytag
|
||||||
|
vlc
|
||||||
|
sonata
|
20
_i3__abraracourcix/menu.sh
Executable file
20
_i3__abraracourcix/menu.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
base00="#101218"
|
||||||
|
base01="#1f222d"
|
||||||
|
base02="#252936"
|
||||||
|
base03="#7780a1"
|
||||||
|
base04="#C0C5CE"
|
||||||
|
base05="#d1d4e0"
|
||||||
|
base06="#C9CCDB"
|
||||||
|
base07="#ffffff"
|
||||||
|
base08="#ee829f"
|
||||||
|
base09="#f99170"
|
||||||
|
base0A="#ffefcc"
|
||||||
|
base0B="#a5ffe1"
|
||||||
|
base0C="#97e0ff"
|
||||||
|
base0D="#97bbf7"
|
||||||
|
base0E="#c0b7f9"
|
||||||
|
base0F="#fcc09e"
|
||||||
|
|
||||||
|
cmd=$( cat ~/.i3/favs | rofi -dmenu -lines 5 -eh 2 -width 100 -padding 300 -opacity "80" -bw 0 -bc "$base01" -bg "$base02" -fg "$base07" -hlbg "$base05" -columns 2 "Terminus 8" -hlfg "#9575cd" )
|
||||||
|
exec $cmd
|
38
_i3__abraracourcix/menu_open.sh
Executable file
38
_i3__abraracourcix/menu_open.sh
Executable file
@ -0,0 +1,38 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
base00="#101218"
|
||||||
|
base01="#1f222d"
|
||||||
|
base02="#252936"
|
||||||
|
base03="#7780a1"
|
||||||
|
base04="#C0C5CE"
|
||||||
|
base05="#d1d4e0"
|
||||||
|
base06="#C9CCDB"
|
||||||
|
base07="#ffffff"
|
||||||
|
base08="#ee829f"
|
||||||
|
base09="#f99170"
|
||||||
|
base0A="#ffefcc"
|
||||||
|
base0B="#a5ffe1"
|
||||||
|
base0C="#97e0ff"
|
||||||
|
base0D="#97bbf7"
|
||||||
|
base0E="#c0b7f9"
|
||||||
|
base0F="#fcc09e"
|
||||||
|
|
||||||
|
DIR=$HOME
|
||||||
|
FILE=
|
||||||
|
while [ -z "$FILE" ]
|
||||||
|
do
|
||||||
|
sel=$( ls "$DIR" | rofi -dmenu -i -lines 5 -eh 2 -width 100 -padding 300 -opacity "80" -bw 0 -bc "$base01" -bg "$base02" -fg "$base07" -hlbg "$base05" -columns 2 "Terminus 8" -hlfg "#9575cd" )
|
||||||
|
if [ -z "$sel" ]
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
elif [ -f "$DIR/$sel" ]
|
||||||
|
then
|
||||||
|
FILE="$sel"
|
||||||
|
elif [ -d "$DIR/$sel" ]
|
||||||
|
then
|
||||||
|
DIR="$DIR/$sel"
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exec xdg-open "$DIR/$FILE"
|
Loading…
Reference in New Issue
Block a user