\IiiiLine{set $mod Mod4}%$

\def\LedOpSwap#1#2#3{\Cmd{}}

%%%%%%%%%%%%%% Local vars %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcount\countI
\newcount\countJ
\def\Iter{}

\IfInclude{local.tex}

%%%%%%%%%%%%%% Config functions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\WorkspaceAll#1#2#3{
	\BindKey{\Key{\Super      }{#1}{#2}}{    \GoWorkspace{#3}}
	\BindKey{\Key{\Shift\Super}{#1}{#2}}{  \ContWorkspace{#3}}
	\BindKey{\Key{\Ctrl\Super }{#1}{#2}}{\ContGoWorkspace{#3}}
}
\def\WorkspaceMasterAll#1#2#3{
	\BindKey{\Key{\Super      }{#1}{#2}}{    \GoMasterWorkspace{#3}}
	\BindKey{\Key{\Shift\Super}{#1}{#2}}{  \ContMasterWorkspace{#3}}
	\BindKey{\Key{\Ctrl\Super }{#1}{#2}}{\ContGoMasterWorkspace{#3}}
	\BindKey{\Key{\Alt\Super  }{#1}{#2}}{\Cmd{i3-woman swap-with-workspace -m #3 -s alloc -n}}
	\BindKey{\Key{\Alt\Shift\Super}{#1}{#2}}{\Cmd{i3-woman swap-master-with-workspace -m #3 -s alloc -n}}
}
\def\WorkspaceSlaveAll#1#2#3{
	\BindKey{\Key{\Super      }{#1}{#2}}{    \GoSlaveWorkspace{#3}}
	\BindKey{\Key{\Shift\Super}{#1}{#2}}{  \ContSlaveWorkspace{#3}}
	\BindKey{\Key{\Ctrl\Super }{#1}{#2}}{\ContGoSlaveWorkspace{#3}}
	\BindKey{\Key{\Alt\Super  }{#1}{#2}}{\Cmd{i3-woman swap-with-workspace -s #3 -n}}
}

\def\BindArrUp#1#2{
	\BindKey{\Key{#1}{3}{8}}{#2}
	\BindKey{\Key{#1}{9}{0}}{#2}
}

\def\BindArrDown#1#2{
	\BindKey{\Key{#1}{3}{7}}{#2}
	\BindKey{\Key{#1}{10}{1}}{#2}
}

\def\BindArrLeft#1#2{
	\BindKey{\Key{#1}{3}{6}}{#2}
	\BindKey{\Key{#1}{10}{0}}{#2}
}

\def\BindArrRight#1#2{
	\BindKey{\Key{#1}{3}{9}}{#2}
	\BindKey{\Key{#1}{10}{2}}{#2}
}

\def\StandardReturn
{
	\BindKey{\Key{}{2}{13}}{\GoMode{\UpModeName}}
	\BindKey{\Key{}{0}{0}}{\GoMode{default}}
	\BindKey{\Key{\Super}{2}{13}}{\GoMode{\UpModeName}}
	\BindKey{\Key{\Super}{0}{0}}{\GoMode{default}}
}

\def\AppWorkspace#1#2#3#4{
	\BindKey{\Key{\Super}{#1}{#2}}{\GoWorkspace{#3}}
	\BindKey{\Key{\Shift\Super}{#1}{#2}}{\AndII{\GoWorkspace{#3}}{\Cmd{#4}}}
	\BindKey{\Key{\Ctrl\Super}{#1}{#2}}{\ContGoWorkspace{#3}}
}

%%%%%%%%%%%%%% On start run %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RunCmd{xrdb ~/.Xresources}
\def\CmdSetxkbmap{setxkbmap us,cz -variant ,ucw -option "" -option grp:caps_switch}
\RunCmd{\CmdSetxkbmap}
\RunCmd{sleep 2; osdd-run & sleep 1;osdc --color=red START}
\RunCmd{/usr/bin/gnome-keyring-deamon --start --components=secrets}
\RunCmd{numlockx on}
\RunCmd{sleep 5; terminal -e m-daemon}

%%%%%%%%%%%%%% View option %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\catcode`#11
% class                 border  bground text    indicator child_border
\IiiiLine{client.focused          #FF0000 #285577 #FFFFFF #FF0000   #FF0000}
\IiiiLine{client.focused_inactive #000000 #000000 #FFFFFF #000000   #000000}
\IiiiLine{client.unfocused        #000000 #000000 #888888 #000000   #000000}
\IiiiLine{client.urgent           #2F343A #900000 #FFFFFF #900000   #900000}
\IiiiLine{client.placeholder      #000000 #0C0C0C #FFFFFF #000000   #000000}
\IiiiLine{client.background       #FFFFFF}
\catcode`#6
\IiiiLine{for_window [class=".*"] border pixel 1}
\IiiiLine{font pango:monospace 9}

\IiiiLine{%
bar \{%
        % status_command "~/.config/i3/status.out 2>~/.status.log"%
        status_command "~/bin/i3csstatus i3 -c .config/i3/i3csstatus.conf -i 2>~/.i3csstatus.log"%
\}%
}


%%%%%%%%%%%%%% Mouse %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\IiiiLine{floating_modifier $mod} %$

%%%%%%%%%%%%%% Standard workspaces %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\IiiiLine{exec_always "i3-woman exit; i3-woman-daemon --gui"}
\IiiiLine{for_window [title="^i3-woman$"] move to workspace 0}
\IiiiLine{for_window [title="^i3-woman-daemon-tmp-window$"] move to workspace tmp}

\for{I}{0}{13}{\countJ\countI
\WorkspaceSlaveAll{1}{\the\countI}{\the\countJ}
}
\for{I}{1}{13}{\countJ\countI\relax
\WorkspaceMasterAll{0}{\the\countI}{\the\countJ}
}

%%%%%%%%%%%%%% WM Control %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\for{Iter}\in{{Left}{Right}{Up}{Down}}{
\csname BindArr\Iter\endcsname{\Super}{\FocusWind{\Iter}}
\csname BindArr\Iter\endcsname{\Shift\Super}{\MoveCont{\Iter}}
}
\BindKey{\Key{\Super}{4}{10}}{\MoveWorkspace{next}}

\BindKey{\Key{\Super}{4}{9}}{\Cmd{i3-woman goto-workspace -s alloc -n}}
\BindKey{\Key{\Shift\Super}{4}{9}}{\Cmd{i3-woman goto-workspace -m alloc -n}}
\BindKey{\Key{\Ctrl\Super}{4}{9}}{\Cmd{i3-woman goto-with-container-to -s alloc -n}}
\BindKey{\Key{\Ctrl\Shift\Super}{4}{9}}{\Cmd{i3-woman goto-with-container-to -m alloc -n}}

\BindKey{\Key{\Super}{4}{11}}{\Cmd{i3-woman gui}}
% \IiiiLine{for_window [title="i3-workspace-daemon"] move container to workspace 0}

\BindArrDown{\Ctrl\Super}{\Cmd{i3-woman goto-workspace -m next-skip -n}}
\BindArrUp{\Ctrl\Super}{\Cmd{i3-woman goto-workspace -m prev-skip -n}}
\BindArrLeft{\Ctrl\Super}{\Cmd{i3-woman goto-workspace -s prev-skip -n}}
\BindArrRight{\Ctrl\Super}{\Cmd{i3-woman goto-workspace -s next-skip -n}}
\BindArrDown{\Ctrl\Shift\Super}{\Cmd{i3-woman goto-workspace -m next -n}}
\BindArrUp{\Ctrl\Shift\Super}{\Cmd{i3-woman goto-workspace -m prev -n}}
\BindArrLeft{\Ctrl\Shift\Super}{\Cmd{i3-woman goto-workspace -s prev-limit -n}}
\BindArrRight{\Ctrl\Shift\Super}{\Cmd{i3-woman goto-workspace -s next-limit -n}}

\BindKey{\Key{\Super}{4}{5}}{\SplitContV}
\BindKey{\Key{\Super}{3}{5}}{\SplitContH}
\BindKey{\Key{\Super}{2}{5}}{\SplitContT}

\BindKey{\Key{\Super}{3}{4}}{\FullscreenContToggle}

\BindKey{\Key{\Super}{3}{2}}{\LayoutCont{stacking}}
\BindKey{\Key{\Super}{2}{2}}{\LayoutCont{tabbed}}
\BindKey{\Key{\Super}{2}{3}}{\LayoutCont{toggle split}}

\BindKey{\Key{\Shift\Super}{5}{3}}{\FloatingToggleCont}
\BindKey{\Key{\Ctrl\Super}{5}{3}}{\StickyToggleCont}
\BindKey{\Key{\Super}{5}{3}}{\FocusWind{mode_toggle}}

\BindKey{\Key{\Super}{3}{1}}{\FocusWind{parent}}
\BindKey{\Key{\Shift\Super}{3}{1}}{\FocusWind{child}}

\BindKey{\Key{\Shift\Super}{2}{4}}{\RestartProg}
\BindKey{\Key{\Ctrl\Shift\Super}{2}{4}}{\RestartProgII}

% kill window
\BindKey{\Key{\Super}{2}{1}}{\Cmd{~/.config/i3/i3-kill}}
\BindKey{\Key{\Shift\Super}{2}{1}}{\IiiiInline{ --release }\Cmd{xkill}}
\BindKey{\Key{\Ctrl\Super}{2}{1}}{\IiiiInline{ --release }\Cmd{killall xkill}}

% resize window (you can also use the mouse for that)
\BindKey{\Key{\Super}{2}{4}}{\GoMode{resize}}
\Mode{resize}{
	\StandardReturn
	\def\ResizeContSGLeft{shrink}
	\def\ResizeContSGRight{grow}
	\def\ResizeContSGUp{shrink}
	\def\ResizeContSGDown{grow}
	\def\ResizeContWHLeft{width}
	\def\ResizeContWHRight{width}
	\def\ResizeContWHUp{height}
	\def\ResizeContWHDown{height}
	\for{Iter}\in{{Left}{Right}{Up}{Down}}{
		\csname BindArr\Iter\endcsname{}
			{\ResizeCont{\csname ResizeContSG\Iter\endcsname}{\csname ResizeContWH\Iter\endcsname}{12}}
		\csname BindArr\Iter\endcsname{\Shift}
			{\ResizeCont{\csname ResizeContSG\Iter\endcsname}{\csname ResizeContWH\Iter\endcsname}{2}}
	}
}

\BindKey{\Key{\Super}{2}{10}}{\Cmd{~/.config/i3/i3-toggle-border}}

% Locks
\BindKey{\Key{\Super}{0}{0}}{\GoMode{LOCK-MOD-ESC}}
\Mode{LOCK-MOD-ESC}{
	\BindKey{\Key{\Super}{0}{0}}{\GoMode{\UpModeName}}
}

\BindKey{\Key{\Shift\Super}{0}{0}}{\GoMode{LOCK-MOD-SHIFT-ESC}}
\Mode{LOCK-MOD-SHIFT-ESC}{
	\BindKey{\Key{\Shift\Super}{0}{0}}{\GoMode{\UpModeName}}
}

%%%%%%%%%%%%%% App binding %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% start a terminal
\BindKey{\Key{\Super}{2}{13}}{\Cmd{xdg-terminal}}
\BindKey{\Key{\Super}{4}{1}}{\Cmd{terminal}}

% app launcher
\BindKey{\Key{\Shift\Super}{3}{3}}{\Cmd{dmenu_run}}
\BindKey{\Key{\Ctrl\Shift\Super}{3}{3}}{\Cmd{xdg-terminal $(dmenu_path | dmenu)}} %$
\BindKey{\Key{\Super}{3}{3}}{\Cmd{rofi -show combi}}
\BindKey{\Key{\Ctrl\Super}{3}{3}}{\Cmd{xfce4-appfinder}}

% web brouwsers
\BindKey{\Key{\Super}{4}{4}}{\Cmd{chromium}}
\BindKey{\Key{\Shift\Super}{4}{4}}{\Cmd{firefox}}
\BindKey{\Key{\Ctrl\Super}{4}{4}}{\Cmd{qutebrowser}}

\BindKey{\Key{\Ctrl\Shift\Super}{4}{2}}{\Cmd{zathura}}

% \BindKey{\Key{\Super}{4}{9}}{\GoWorkspace{1}}

\IiiiLine{for_window [title="WebUpdatingIndicator compare"] floating enable}
\IiiiLine{for_window [title="Tea Timer"] floating enable}
\IiiiLine{for_window [title="Tea Timer"] sticky enable}

\AppWorkspace{4}{8}{MAIL}{terminal -e m-daemon}
\IiiiLine{for_window [title="MAIL"] move container to workspace MAIL}

\AppWorkspace{4}{2}{ZOOM}{zoom}
\IiiiLine{for_window [class="zoom"] move container to workspace ZOOM}
\IiiiLine{for_window [title="^zoom$" class="zoom"] floating enable}
\IiiiLine{for_window [title="Zoom - Free Account" class="zoom"] floating disable}

\IiiiLine{for_window [title="AlwaysOnTop"] floating enable}

\BindKey{\Key{\Super}{4}{7}}{\Cmd{nemo}}


\IiiiLine{floating_modifier $mod} %$

\BindKey{\Key{}{6}{0}}{\Cmd{maim -suo | tee ~/screenshot.png | xclip -selection clipboard -t image/png}}
\BindKey{\Key{\Shift}{6}{0}}{\Cmd{maim -suo > ~/screenshot.png ; convert ~/screenshot.png $(zenity --file-selection --save --file-filter='Picture | *.png *.jpg *.gif *.bmp' --confirm-overwrite)}} %$
\BindKey{\Key{\Ctrl}{6}{0}}{\Cmd{maim -uo | convert png:- $(zenity --file-selection --save --file-filter='Picture | *.png *.jpg *.gif *.bmp' --confirm-overwrite)}} %$
\BindKey{\Key{\Ctrl\Shift}{6}{0}}{\Cmd{maim -uo | xclip -selection clipboard -t image/png}}
\BindKey{\Key{\Super}{6}{0}}{\Cmd{maim -uo > ~/screenshot.png ;gimp ~/screenshot.png}}


% TV
% \BindKey{\Key{\Super}{4}{11}}{\Cmd{vlc http://192.168.1.191:9981/playlist/channels}}
% \BindKey{\Key{\Shift\Super}{4}{11}}{\Cmd{vlc http://192.168.1.191:9981/stream/mux/53d6b078f24454f7f0ac0dd323f69569 http://192.168.1.191:9981/stream/mux/df4d0d285682018251b68a9b81e0293a http://192.168.1.191:9981/stream/mux/47b53b11fb6dcabc260b7784de9eb45f}}
% \BindKey{\Key{\Ctrl\Super}{4}{11}}{\Cmd{vlc http://localhost:9981/playlist/channels}}
% \BindKey{\Key{\Ctrl\Shift\Super}{4}{11}}{\Cmd{vlc http://localhost:9981/stream/mux/53d6b078f24454f7f0ac0dd323f69569 http://localhost:9981/stream/mux/df4d0d285682018251b68a9b81e0293a http://localhost:9981/stream/mux/47b53b11fb6dcabc260b7784de9eb45f}}




%%%%%%%%%%%%%% OSD %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\OsdEmpty{\Cmd{osdc --duration=1 --output=loglast ""}}
\def\OsdSkip{\Cmd{osdc --cmd-now=skip --do-not-que= --output=no --duration=1 ""}}
\def\OsdClock{\Cmd{osd-clock --output=display}}
\def\OsdLog{\Cmd{terminal -e bash -i -c "tail -n500 ~/.osdd_log;read"}}
\def\OsdRestart{\Cmd{osdd-run & sleep 1;osdc --color=red RESTART}}
\def\OsdDisable#1{\Cmd{osdc --cmd-after=disable:#1 --color=red Disable #1 }}
\def\OsdEnable#1{\Cmd{osdc --cmd-now=enable:#1 --color=red Enable #1 }}
\def\OsdTest{\Cmd{osdc --color=red test --color=blue 123456789 --color=green  123456789123456789123456789123456789123456789123456789 --color=white 123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789  }}

\BindKey{\Key{}{4}{1}}{\OsdEmpty}
\BindKey{\Key{\Super}{3}{12}}{\OsdEmpty}
\BindKey{\Key{\Shift}{4}{1}}{\OsdSkip}
\BindKey{\Key{\Shift\Super}{3}{12}}{\OsdSkip}
\BindKey{\Key{\Ctrl}{4}{1}}{\OsdClock}
\BindKey{\Key{\Ctrl\Super}{3}{12}}{\OsdClock}
\BindKey{\Key{\Ctrl\Shift}{4}{1}}{\OsdLog}
\BindKey{\Key{\Ctrl\Shift\Super}{3}{12}}{\OsdLog}





%%%%%%%%%%%%%% System modificator %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\BindKey{\Key{\Shift\Super}{2}{3}}{\ExitProg}
\BindKey{\Key{\Ctrl\Super}{2}{3}}{\Cmd{xtrlock}}
\BindKey{\Key{\Shift\Super}{3}{2}}{\ExitShutdown}
\BindKey{\Key{\Ctrl\Super}{3}{2}}{\ExitSuspend}
\BindKey{\Key{\Ctrl\Super}{2}{4}}{\ExitRestart}
\BindKey{\Key{\Super}{4}{3}}{\GoMode{System-modifikator}}

\Mode{System-modifikator}{
	\StandardReturn
	\BindKey{\Key{}{2}{1}}{\Light{H}{0}}
	\BindKey{\Key{}{2}{2}}{\Light{-}{0.9}}
	\BindKey{\Key{}{2}{3}}{\Light{-}{0.15}}
	\BindKey{\Key{}{2}{4}}{\Light{+}{0.15}}
	\BindKey{\Key{}{2}{5}}{\Light{+}{0.9}}

	\BindKey{\Key{}{3}{1}}{\Volume{ }{0}}
	\BindKey{\Key{}{3}{2}}{\Volume{-}{10}}
	\BindKey{\Key{}{3}{3}}{\Volume{-}{2}}
	\BindKey{\Key{}{3}{4}}{\Volume{+}{2}}
	\BindKey{\Key{}{3}{5}}{\Volume{+}{10}}

	\BindKey{\Key{}{4}{7}}{\Cmd{xrand--auto; xrandr --output DP-1 --off --output HDMI-1 --off --output eDP-1 --pos 0x0 --mode 1920x1080; wacom-config output 0}}
	\BindKey{\Key{}{4}{8}}{\Cmd{xrandr --auto; xrandr --output DP-1 --pos 0x0 --output HDMI-1 --pos 0x0 --output eDP-1 --pos 2560x500; xsetwacom --set 10 MapToOutput  2560x1440+0+0; wacom-config output 0}}
	\BindKey{\Key{}{4}{9}}{\Cmd{xrandr --auto ; wacom-config output 0}}

	\BindKey{\Key{}{4}{6}}{\Cmd{\CmdSetxkbmap}}

	\BindKey{\Key{}{2}{6}}{\CpuFSet{400}}
	\BindKey{\Key{}{2}{7}}{\CpuFSet{800}}
	\BindKey{\Key{}{2}{8}}{\CpuFSet{1500}}
	\BindKey{\Key{}{2}{9}}{\CpuFSet{5000}}
	\BindKey{\Key{}{2}{10}}{\CpuF}
	\for{Iter}\in{{sda}{sdb}{sdc}{sdd}}{
		\def\DiskSleepModsda{}
		\def\DiskSleepModsdb{\Shift}
		\def\DiskSleepModsdc{\Ctrl}
		\def\DiskSleepModsdd{\Ctrl\Shift}
		\letcs{DiskSleepMod}{DiskSleepMod\Iter}
		\BindKey{\Key{\DiskSleepMod}{3}{9}}{\DiskSleep{\Iter}{1}}
		\BindKey{\Key{\DiskSleepMod}{3}{8}}{\DiskSleep{\Iter}{30}}
		\BindKey{\Key{\DiskSleepMod}{3}{7}}{\DiskSleep{\Iter}{0}}
		\BindKey{\Key{\DiskSleepMod}{3}{10}}{\DiskSleep{\Iter}{Y}}
		\BindKey{\Key{\DiskSleepMod}{3}{11}}{\DiskSleep{\Iter}{umount}}
		\BindKey{\Key{\DiskSleepMod}{3}{12}}{\DiskSleep{\Iter}{off}}
	}
	\BindKey{\Key{}{2}{12}}{\Cmd{notify-send "$(lsblk)"}}%$
	\BindKey{\Key{\Shift}{2}{12}}{\AndII{\GoMode{default}}{\Cmd{gksudo -g gparted}}}
	\BindKey{\Key{\Ctrl}{2}{12}}{\AndII{\GoMode{default}}{\Cmd{gksudo -g gnome-disks}}}

	\BindKey{\Key{}{4}{1}}{\OsdRestart}
	\BindKey{\Key{\Shift}{4}{1}}{\OsdTest}
	\BindKey{\Key{\Super}{3}{12}}{\OsdRestart}
	\BindKey{\Key{\Super\Shift}{3}{12}}{\OsdTest}
	\BindKey{\Key{}{4}{2}}{\OsdEnable{led}}
	\BindKey{\Key{\Shift}{4}{2}}{\OsdDisable{led}}
	\BindKey{\Key{}{4}{3}}{\OsdEnable{loglast}}
	\BindKey{\Key{\Shift}{4}{3}}{\OsdDisable{loglast}}
	\BindKey{\Key{}{4}{4}}{\OsdEnable{display0}}
	\BindKey{\Key{\Shift}{4}{4}}{\OsdDisable{display0}}
	\BindKey{\Key{}{4}{5}}{\OsdEnable{display1}}
	\BindKey{\Key{\Shift}{4}{5}}{\OsdDisable{display1}}
	\BindKey{\KeyH{}}{\AndII{\GoMode{default}}{\Cmd{blueman-manager}}}
	\BindKey{\KeyH{\Shift}}{\AndII{\GoMode{default}}{\Cmd{bueman-applet}}}
}
%\BindKey{\KeyI{\Super}}{\Cmd{terminal}}
%\BindKey{\Key{}{2}{6}}{\Cmd{terminal}}

%\IiiiLine{bindsym --whole-window button9 exec wacom-config next}
%\IiiiLine{bindsym --whole-window button4 exec osdc 4  ~/.wacom/button}
%\IiiiLine{bindsym --whole-window button5 exec osdc 5  ~/.wacom/button}
%\IiiiLine{bindsym --whole-window button6 exec osdc 6  ~/.wacom/button}
%\IiiiLine{bindsym --whole-window button7 exec osdc 7  ~/.wacom/button}
%\IiiiLine{bindsym --whole-window button8 exec osdc 8  ~/.wacom/button}

%\def\nope,{}
%\for{I}4 {30} {
%\IiiiLine{bindsym --whole-window button\the\countI\nope, exec "echo -n \the\countI\nope, > ~/.wacom/button"}
%\IiiiLine{bindsym --release --whole-window --border button\the\countI\nope, exec "echo -n \the\countI\nope, > ~/.wacom/button"}
%}
%\IiiiLine{bindsym --whole-window button5 exec "echo -n 5 > ~/.wacom/button"}
%\IiiiLine{bindsym --whole-window button6 exec "echo -n 6 > ~/.wacom/button"}
%\IiiiLine{bindsym --whole-window button7 exec "echo -n 7 > ~/.wacom/button"}
%\IiiiLine{bindsym --whole-window button8 exec "echo -n 8 > ~/.wacom/button"}
\IiiiLine{exec wacom-daemon}
\IiiiLine{bindsym --whole-window $Mod+Shift+button1 exec wacom-config map 0} %$
\IiiiLine{bindsym --whole-window $Mod+Ctrl+button1 exec wacom-config map 1} %$

\IfInclude{led.tex}

\def\OutputModeIiii{i3}
\ifx\OutputMode\OutputModeIiii
\IiiiInline{bindcode 171 }\LedOpSwap{jug9/1}{_}{second}\IiiiLine{}
\IiiiInline{bindcode 173 }\Volume{}{0}\IiiiLine{}
\IiiiLine{bindcode 172 exec playerctl play-pause}
\IiiiLine{bindcode 208 exec playerctl play-pause}
\IiiiLine{bindcode 209 exec playerctl play-pause}
\fi
\BindKey{\KeyX{\Super\Shift}}{\Cmd{playerctl play-pause}}

\def\BindPasman#1#2{
\BindKey{#1{      \Super}}{\IiiiInline{ --release }\Cmd{pasman-osd #2 xall}}
\BindKey{#1{\Shift\Super}}{\IiiiInline{ --release }\Cmd{pasman-osd #2 xuser}}
\BindKey{#1{\Ctrl \Super}}{\IiiiInline{ --release }\Cmd{pasman-osd #2 xpasswd}}
}
\BindPasman{\KeyU}{rofi}
\BindPasman{\KeyI}{clip}
\BindPasman{\KeyO}{chrome}
\BindPasman{\csname Key[\endcsname}{roficlip}
\BindPasman{\csname Key]\endcsname}{rofichrome}

\BindKey{\Key{\Super}{3}{10}}{\Cmd{tt}}
\BindKey{\Key{\Super\Shift}{3}{10}}{\Cmd{tt 2:00}}
\BindKey{\Key{\Super\Ctrl}{3}{10}}{\Cmd{tt 3:00}}
\BindKey{\Key{\Super\Ctrl\Shift}{3}{10}}{\Cmd{tt 5:00}}

\def\OutputModeDoc{doc}
\ifx\OutputMode\OutputModeDoc
\PrintKeyboard{{\relax\Super}{\Super\Shift}{\Super\Ctrl}{\Super\Ctrl\Shift}}
\PrintKeyboard{{\relax}{\Shift}{\Ctrl}{\Ctrl\Shift}}
\fi
