# startup [[[ # # set $term urxvt # set $term_alt st set $term kitty set $term_alt urxvt # set $term st # set $term_alt urxvt {{ if eq .chezmoi.fullHostname "x1-carbon" }} exec dunst exec compton exec imwheel exec numlockx on exec xbacklight -set 10 # exec wal -i "$(/home/kevin/scripts/shuffler \"/home/kevin/Pictures/Backgrounds/dim/non-editing\")" exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") {{ end }} # exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null # exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"' exec --no-startup-id i3-msg 'workspace $ws1; exec $term' exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' # exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy' # exec --no-startup-id i3-msg 'workspace $ws6; exec discord' # ]]] startup # # applications [[[ # set $mod Mod1 set $browser "firefox" # set $browser "chromium-browser" set $scripts_path "/home/kevin/scripts" set $sch_dir "$HOME/Documents/School" # app shortcuts [[[ # set $type_delay_cmd sleep .3 bindsym Control+Return exec $term bindsym Control+Shift+Return exec st -A1 bindsym Control+$mod+Return exec $term_alt # bindsym Control+$mod+Return exec st # PROTIP: You can also dynamically set dmenu's colors this way: # bindsym Mod4+Return exec /home/kevin/scripts/dmenu-history -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg" bindsym Mod4+Return exec ~/scripts/dmenu-history -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg" # bindsym Mod4+Return exec dmenu_run -nb "$fg" -nf "$bg" -sb "$bg" -sf "$fg" # bindsym Mod4+Return exec dmenu_run # 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 # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # bindsym Mod4+b layout tabbed; exec zathura bindsym Mod4+c exec $browser # bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)" # bindsym Mod4+e exec emacs bindsym Mod4+e exec ~/scripts/twem # bindsym Mod4+f exec firefox bindsym Mod4+f exec firefox --private-window # bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard bindsym Mod4+h exec sleep .2 && xdotool type '.hint' bindsym Mod4+$mod+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca' bindsym Mod4+$mod+i exec sleep .2 && xdotool type '.info latest' # bindsym Mod4+m exec $term -e ~/scripts/vim-man bindsym Mod4+m exec $type_delay_cmd && xdotool type 'me@kevin-mok.com' # bindsym Mod4+$mod+m exec pass -c uoft/markus bindsym Mod4+n exec $term -e nvim bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v' # bindsym Mod4+o exec $type_delay_cmd && xdotool key 'Control_L+v' bindsym Mod4+$mod+o exec xset dpms force off # bindsym Mod4+p workspace $ws4; exec pgadmin3 # bindsym Mod4+p exec pycharm bindsym Mod4+p exec sleep .2 && xdotool type '.catch ' bindsym Mod4+$mod+p exec passmenu # bindsym Mod4+$mod+p exec notify-send "ping" "$(ping -c 3 -W 1 8.8.8.8)" # bindsym Mod4+q exec qdirstat bindsym Mod4+q exec printf 'emad1 ' | xclip -selection clipboard && $type_delay_cmd && xdotool key 'Control_L+v' bindsym Mod4+r exec $term -e ranger bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)" bindsym Mod4+$mod+s exec $type_delay_cmd && xdotool type 'https://smol.gq/' bindsym Mod4+t exec xclip -selection clipboard ~/.password-store/social/trapbot && $type_delay_cmd && xdotool key 'Control_L+v' bindsym Mod4+u exec $type_delay_cmd && xdotool type 'kevin.mok@mail.utoronto.ca' # bindsym Mod4+$mod+u exec pass -c uoft/acorn # bindsym Mod4+w exec notify-send "watson status" "$(watson status)" # bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)" bindsym Control+Mod4+w exec $term -e nvim /home/kevin/.config/watson/state.tmp # bindsym Mod4+x exec $swex bindsym Control+$mod+x exec $type_delay_cmd && xdotool type 'http://codm.ataraxy.tk/' bindsym Mod4+z exec cliqz {{ if .ext_kb }} bindsym Mod4+x exec ~/scripts/xmodmap-custom bindsym Print --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym Control+Print --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" {{ else }} bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE bindsym Control+$mod+p --release exec "maim -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym Control+Shift+p --release exec "maim -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" {{ end }} # ]]] app shortcuts # # redshift [[[ # bindsym $mod+Mod4+1 exec redshift -x && redshift -O 1100 bindsym $mod+Mod4+2 exec redshift -x && redshift -O 2000 bindsym $mod+Mod4+3 exec redshift -x && redshift -O 3000 bindsym $mod+Mod4+4 exec redshift -x && redshift -O 4000 bindsym $mod+Mod4+5 exec redshift -x && redshift -O 5000 bindsym $mod+Mod4+grave exec Redshift -x # ]]] redshift # # backlight [[[ # {{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }} bindsym Shift+F1 exec xbacklight -set 10 bindsym Shift+F2 exec xbacklight -set 20 bindsym Shift+F3 exec xbacklight -set 30 bindsym Shift+F4 exec xbacklight -set 40 bindsym Shift+F5 exec xbacklight -set 50 bindsym Shift+F6 exec xbacklight -set 60 bindsym Shift+F7 exec xbacklight -set 70 bindsym Shift+F8 exec xbacklight -set 80 bindsym Shift+F9 exec xbacklight -set 90 bindsym Shift+F10 exec xbacklight -set 100 bindsym Shift+grave exec xbacklight -set 0 bindsym Control+$mod+plus exec xbacklight -inc 2 bindsym Control+$mod+minus exec xbacklight -dec 2 bindsym Control+$mod+w exec sudo systemctl start netctl-auto@wlp3s0.service bindsym Control+$mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service {{ end }} # ]]] backlight # for_window [class="Peek"] floating enable for_window [title="Qalculate!"] floating enable # ]]] applications # # container display [[[ # # Font for window titles font pango:$sb_font 11 bindsym $mod+s layout stacking # change container layout (stacked, tabbed, toggle split) bindsym $mod+t layout tabbed bindsym $mod+e layout toggle split # enter fullscreen mode for the focused container bindsym $mod+f fullscreen toggle # toggle tiling /floating bindsym $mod+Shift+space floating toggle # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle # focus the parent container # bindsym $mod+a focus parent # focus the child container #bindsym $mod+d focus child # gaps [[[ # set $inner_gaps 20 # set $inner_gaps 7 # set $inner_gaps 0 set $outer_gaps 0 # set $border_radius 15 set $border_radius 0 # remove window titlebars # for_window [class="^.*"] border pixel 2 for_window [class="^.*"] border pixel 3 # gaps inner $inner_gaps # gaps outer $outer_gaps # gaps bottom 0 # gaps inner 0 # gaps outer 0 {{ if eq .chezmoi.fullHostname "nzxt" }} border_radius $border_radius {{ end }} # other gaps [[[ # # gaps horizontal 20 # gaps vertical 10 # gaps top # gaps left 20 # gaps right 20 # gaps bottom # ]]] other gaps # bindsym Control+shift+plus gaps inner all set $inner_gaps;gaps outer all set $outer_gaps bindsym Control+shift+0 gaps inner all set 0;gaps outer all set 0 # ]]] gaps # # colors from pywal [[[ # set_from_resource $fg i3wm.color7 #f0f0f0 #F0F0F0 # Set colors from Xresources # Change 'color7' and 'color2' to whatever colors you want i3 to use # from the generated scheme. # NOTE: The '#f0f0f0' in the lines below is the color i3 will use if # it fails to get colors from Xresources. set_from_resource $bg i3wm.color2 #f0f0f0 # class border backgr. text indicator child_border client.focused $bg $bg $fg $bg $bg # client.unfocused $fg $bg $fg $bg $fg # client.urgent $bg $bg $fg $bg $bg # client.placeholder $bg $bg $fg $bg $bg # client.background $bg # ]]] colors from pywal # # ]]] container display # # moving windows [[[ # # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod # change focus bindsym Control+h focus left bindsym Control+j focus down bindsym Control+k focus up bindsym Control+l focus right # move workspace to other monitor bindsym $mod+minus move workspace to output left bindsym $mod+plus move workspace to output right # move focused window {{ if eq .chezmoi.fullHostname "x1-carbon" }} bindsym Control+Shift+h move left 50px bindsym Control+Shift+j move down 50px bindsym Control+Shift+k move up 50px bindsym Control+Shift+l move right 50px {{ else }} bindsym Control+Shift+h move left bindsym Control+Shift+j move down bindsym Control+Shift+k move up bindsym Control+Shift+l move right {{ end }} # split in horizontal orientation bindsym $mod+b split h bindsym Control+$mod+b split h; exec $term # split in vertical orientation bindsym $mod+v split v bindsym Mod4+$mod+v split v; exec $term # resizing windows # bindsym Control+$mod+h resize grow width 5 px or 5 ppt bindsym Control+$mod+k resize grow height 5 px or 5 ppt bindsym Control+$mod+j resize shrink height 5 px or 5 ppt bindsym Control+$mod+l resize shrink width 5 px or 5 ppt # bindsym Control+Shift+x kill bindsym shift+x kill bindsym Control+$mod+t sticky toggle # bindsym Control+$mod+a floating enable; resize set 400px 125px; move absolute position 1648 200; sticky enable bindsym Control+$mod+a floating enable; resize set 400px 150px; move absolute position 424 945; sticky enable # for_window [class="ada-mario"] floating enable # for_window [class="ada-mario"] move absolute position 640 0 # ]]] moving windows # # backgrounds [[[ # set $make_st_script "/home/kevin/st/make-st.sh" # test {{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }} bindsym Control+Shift+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script bindsym Control+Shift+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script bindsym Control+$mod+z exec feh --bg-fill ~/Pictures/Backgrounds/dim/black.jpg {{ else }} bindsym Control+$mod+q exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/editing") && $make_st_script bindsym Control+$mod+w exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") && $make_st_script {{ end }} bindsym $mod+r exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/dim/editing") && $make_st_script bindsym Control+$mod+y exec wal -i $($scripts_path/shuffler "$HOME/Pictures/Backgrounds/bright/non-editing") && $make_st_script # ]]] backgrounds # # ws names [[[ # set $ws1 "1 " {{ if or (eq .chezmoi.fullHostname "x1-carbon") (eq .linux_os "fedora") }} set $secondary "HDMI2" set $main "eDP1" # {{ else if eq .linux_os "fedora" }} # set $secondary "HDMI2" # set $main "eDP-1" {{ else if eq .chezmoi.fullHostname "nzxt" }} set $secondary "DVI-I-1" set $main "HDMI-0" {{ end }} workspace $ws1 output $main bindsym $mod+F1 workspace $ws1; exec $term set $ws2 "2 " workspace $ws2 output $secondary bindsym $mod+F2 workspace $ws2; exec $term # bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach codm' bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach fortnite' bindsym Control+$mod+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach crimson' # bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach crimson' # bindsym Control+$mod+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach codm' set $ws3 "3 " # set $ws3 "3 " # workspace $ws3 output $main bindsym $mod+F3 workspace $ws3; exec $browser # bindsym Mod4+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf" # bindsym Mod4+$mod+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf fq" # bindsym Mod4+b layout stacked; exec $term -e fish -c "buku-fzf" # bindsym Mod4+$mod+b layout stacked; exec $term -e fish -c "buku-fzf fq" bindsym Mod4+b layout tabbed; exec $term -e fish -c "buku-fzf" bindsym Mod4+$mod+b layout tabbed; exec $term -e fish -c "buku-fzf fq" bindsym Mod4+g workspace $ws3; layout tabbed; exec gimp set $ws4 "4 " workspace $ws4 output $secondary bindsym $mod+F4 workspace $ws4; exec $term set $ws5 "5 " # workspace $ws5 output $secondary assign [class="Steam"] $ws5 bindsym $mod+F5 workspace $ws5; exec $browser bindsym $mod+Mod4+F5 workspace $ws5; exec firefox --private-window # bindsym Mod4+g workspace $ws5; layout stacking; exec $term -e steam # bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp # bindsym Mod4+g workspace $ws5; exec mgba-qt bindsym Mod4+i workspace $ws5; exec idea # bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest bindsym Mod4+$mod+t workspace $ws5; exec thunderbird # bindsym Mod4+$mod+w workspace $ws5; exec $term -e twitchy bindsym Mod4+w workspace $ws5; exec $term -e twitchy bindsym Mod4+5 workspace $ws5; exec godot bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e # for_window [class="Move_mouse_with_head"] floating enable; move absolute position 0 0 for_window [class="Face_detector"] floating enable for_window [class="Face_detector"] move absolute position 0 0 for_window [class="ada-mario"] floating enable # for_window [class="ada-mario"] move absolute position 930 480 for_window [class="ada-mario"] move absolute position 640 0 set $ws6 "6 " workspace $ws6 output $secondary assign [class="Slack"] $ws6 # bindsym Mod4+$mod+d workspace $ws6; exec discord # bindsym Mod4+d workspace $ws6; exec riot-desktop bindsym Mod4+d workspace $ws6; exec firefox -new-window https://riot.im/app bindsym Mod4+$mod+d workspace $ws6; exec discord # bindsym Mod4+d workspace $ws6; exec discord # bindsym Mod4+$mod+d workspace $ws6; exec riot-desktop # bindsym Mod4+d workspace $ws6; exec firefox --new-window https://discordapp.com/channels/430798446723727367/443950744996020228 # bindsym Mod4+i workspace $ws6; exec firefox -new-window https://riot.im/app bindsym Mod4+k workspace $ws6; exec slack set $ws7 "7 " workspace $ws7 output $secondary # bindsym $mod+F7 workspace $ws7; exec $term bindsym $mod+F7 workspace $ws7; exec $term -e mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a bindsym Mod4+a workspace $ws7; exec android-file-transfer # bindsym Mod4+v workspace $ws7; exec VBoxManage startvm "369-a1" set $ws8 "8 " # assign [class="jetbrains-"] $ws8 workspace $ws8 output $secondary # bindsym $mod+F8 workspace $ws8; exec $term # bindsym $mod+F8 workspace $ws8; exec $term -e tmux a -t journal bindsym $mod+F8 workspace $ws8; exec $term -e fish -c 'tmux-attach journal' set $ws9 "9 " workspace $ws9 output $secondary # bindsym $mod+F9 workspace $ws9; exec $term # bindsym $mod+F9 workspace $ws9; exec $term -e tmux a -t config bindsym $mod+F9 workspace $ws9; exec $term -e fish -c 'tmux-attach config' set $ws10 "10 " # set $ws10 "10 🎵" assign [class="spotify"] $ws10 workspace $ws10 output $secondary set $hp 2 # bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 0 bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 1 # bindsym Mod4+$mod+c workspace $ws10; exec $term -e cava # bindsym Mod4+h workspace $ws10; exec $term -e alsamixer -c $hp bindsym Mod4+s workspace $ws10; exec spotify set $ws11 "11 " # set $ws11 "11 📊" # assign [class="Summoners War Exporter"] $ws11 workspace $ws11 output $secondary bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU # bindsym $mod+F11 workspace $ws11; exec $term -e gotop -m # bindsym Mod4+a workspace $ws11; exec antimicro set $ws12 "12 " bindsym $mod+F12 workspace $ws12; exec $term set $ws13 "13 " bindsym Mod4+F3 workspace $ws13; exec $term set $ws14 "14" set $ws15 "15" # ]]] ws names # # ws bindings [[[ # # bindsym $mod+h workspace prev # bindsym $mod+l workspace next bindsym $mod+1 workspace $ws1 bindsym $mod+2 workspace $ws2 bindsym $mod+3 workspace $ws3 bindsym $mod+4 workspace $ws4 bindsym $mod+5 workspace $ws5 bindsym $mod+6 workspace $ws6 bindsym $mod+7 workspace $ws7 bindsym $mod+8 workspace $ws8 bindsym $mod+9 workspace $ws9 bindsym $mod+0 workspace $ws10 bindsym Mod4+1 workspace $ws11 # bindsym Mod4+2 workspace $ws12 # bindsym Mod4+3 workspace $ws13 # bindsym Mod4+4 workspace $ws14 # bindsym Mod4+5 workspace $ws15 # move container to ws [[[ # bindsym $mod+Control+1 move container to workspace $ws1; workspace $ws1 bindsym $mod+Control+2 move container to workspace $ws2; workspace $ws2 bindsym $mod+Control+3 move container to workspace $ws3; workspace $ws3 bindsym $mod+Control+4 move container to workspace $ws4; workspace $ws4 bindsym $mod+Control+5 move container to workspace $ws5; workspace $ws5 bindsym $mod+Control+6 move container to workspace $ws6; workspace $ws6 bindsym $mod+Control+7 move container to workspace $ws7; workspace $ws7 bindsym $mod+Control+8 move container to workspace $ws8; workspace $ws8 bindsym $mod+Control+9 move container to workspace $ws9; workspace $ws9 bindsym $mod+Control+0 move container to workspace $ws10; workspace $ws10 bindsym $mod+Shift+1 move container to workspace $ws11; workspace $ws11 bindsym $mod+Shift+2 move container to workspace $ws12; workspace $ws12 bindsym $mod+Shift+3 move container to workspace $ws13; workspace $ws13 bindsym $mod+Shift+4 move container to workspace $ws14; workspace $ws14 bindsym $mod+Shift+5 move container to workspace $ws15; workspace $ws15 # ]]] move container to ws # # ]]] ws bindings # # reload config [[[ # bindsym Control+$mod+r exec i3-msg restart bindsym $mod+Shift+c reload # bindsym $mod+Control+r reload bindsym $mod+Control+u exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null # exit i3 (logs you out of your X session) bindsym Control+$mod+s exec systemctl suspend bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" # ]]] reload config # # status bar [[[ # # bar vars [[[ # # set $sb_font Hack NF Bold # set $sb_font EmojiOne set $sb_font DejaVuSansMono Nerd Font Mono Bold set $black #000000 set $white #ffffff for_window [class="Yad"] floating enable # set $inactive_ws_bg $white set $inactive_ws_bg #444c52 #00ffff # set $inactive_ws_trans 96 set $inactive_ws_trans 00 # set $active_ws_trans 91 set $active_ws_trans 4b set $focused_ws_text #ffffff # ]]] bar vars # # main bar [[[ # # set $bar_trans 64 set $bar_trans 00 set $main_ws_trans aa bar { i3bar_command i3bar -t {{ if eq .chezmoi.fullHostname "x1-carbon" }} font pango:$sb_font 17 {{ else if eq .linux_os "fedora" }} # font pango:$sb_font 23 font pango:$sb_font 25 {{ else }} # font pango:$sb_font 17 font pango:$sb_font 16 {{ end }} colors { # 0 (transparent) -> 255 (opaque) in hex background $black$bar_trans # border, bg, text color # focused_workspace $inactive_ws_bg $bg $focused_ws_text focused_workspace $inactive_ws_bg $bg $fg # active = focused on other screen active_workspace $inactive_ws_bg $fg$active_ws_trans $fg inactive_workspace $inactive_ws_bg $inactive_ws_bg$inactive_ws_trans $fg } tray_output none # status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf status_command 2>/tmp/i3blocks.err i3blocks -vvv -c ~/.config/i3blocks/i3blocks.conf | tee /tmp/i3blocks.out output $main wheel_up_cmd nop wheel_down_cmd nop } # ]]] main bar # # secondary bar [[[ # bar { output $secondary {{ if eq .chezmoi.fullHostname "x1-carbon" }} font pango:$sb_font 18 {{ else }} font pango:$sb_font 20 {{ end }} # output $main i3bar_command i3bar -t colors { background $black$bar_trans # border, bg, text color # focused_workspace $inactive_ws_bg $bg $focused_ws_text focused_workspace $inactive_ws_bg $bg $fg active_workspace $inactive_ws_bg $fg$active_ws_trans $fg inactive_workspace $inactive_ws_bg $inactive_ws_bg$inactive_ws_trans $fg } status_command i3blocks -c ~/.config/i3blocks/i3blocks-secondary.conf # status_command 2>/tmp/i3blocks-sam.err i3blocks -vvv -c ~/.config/i3blocks/sam-i3blocks.conf | tee /tmp/i3blocks-sam.out tray_output none wheel_up_cmd nop wheel_down_cmd nop } # ]]] secondary bar # # display bar [[[ # # bar { # i3bar_command i3bar -t # font pango:$sb_font 23 # tray_output none # status_command i3blocks -c ~/.config/i3blocks/i3blocks-display.conf # output $secondary # wheel_up_cmd nop # wheel_down_cmd nop # } # ]]] display bar # # ]]] status bar # # media keys [[[ # # sink bindsym XF86AudioRaiseVolume exec amixer -q -D pulse sset Master 5%+ && pkill -RTMIN+1 i3blocks bindsym Control+d exec ~/linux-config/scripts/change-sink dac # bindsym Control+shift+d exec ~/linux-config/scripts/change-sink dac2 bindsym Control+o exec ~/linux-config/scripts/change-sink line-out # media # fn key [[[ # bindsym XF86AudioLowerVolume exec amixer -q -D pulse sset Master 5%- && pkill -RTMIN+1 i3blocks bindsym XF86AudioMute exec amixer -q -D pulse sset Master toggle && pkill -RTMIN+1 i3blocks bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" # bindsym XF86AudioStop exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" bindsym XF86AudioPrev exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" bindsym XF86AudioNext exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" # ]]] fn key # # ]]] media keys # # vim: fdm=marker ft=i3.go-template