Import from sam's config

This commit is contained in:
Martin Potier 2018-05-29 09:20:58 +03:00
parent af2af13a1d
commit f99de93d08
3 changed files with 28 additions and 11 deletions

View file

@ -34,16 +34,20 @@ modify conf = conf
, ("<Tab>-b", sendMessage (Toggle "Full")) , ("<Tab>-b", sendMessage (Toggle "Full"))
, ("<XF86MonBrightnessDown>", spawn "/run/current-system/sw/bin/xbacklight -10") , ("<XF86MonBrightnessDown>", spawn "/run/current-system/sw/bin/xbacklight -10")
, ("<XF86MonBrightnessUp>", spawn "/run/current-system/sw/bin/xbacklight +10") , ("<XF86MonBrightnessUp>", spawn "/run/current-system/sw/bin/xbacklight +10")
, ("<XF86AudioPlay>", spawn "/run/current-system/sw/bin/playerctl play-pause")
, ("<XF86AudioNext>", spawn "/run/current-system/sw/bin/playerctl next")
, ("<XF86AudioPrev>", spawn "/run/current-system/sw/bin/playerctl previous")
, ("M-<Delete>", kill) , ("M-<Delete>", kill)
, ("M-<Down>", windows W.focusDown) , ("M-<Down>", windows W.focusDown)
, ("M-<Esc>", sendMessage (Toggle "Full")) , ("M-<Esc>", sendMessage (Toggle "Full"))
, ("M-$", sendMessage (Toggle "Full")) , ("M-$", sendMessage (Toggle "Full"))
, ("M-<Left>", prevWS) , ("M-<Left>", prevWS)
, ("M-i", prevScreen)
, ("M-e", nextScreen) , ("M-e", nextScreen)
, ("M-<Right>", nextWS) , ("M-<Right>", nextWS)
, ("M-<Tab>", toggleWS' ["NSP"]) , ("M-<Tab>", toggleWS' ["NSP"])
, ("M-<Up>", windows W.focusUp) , ("M-<Up>", windows W.focusUp)
, ("M-S-<Delete>", spawn "/run/current-system/sw/bin/i3lock-fancy -g -p") , ("M-S-<Delete>", spawn "/run/current-system/sw/bin/i3lock -f -t -c 002b36")
, ("M-S-<Left>", shiftToPrev >> prevWS) , ("M-S-<Left>", shiftToPrev >> prevWS)
, ("M-S-<Right>", shiftToNext >> nextWS) , ("M-S-<Right>", shiftToNext >> nextWS)
, ("M-s s", spawn "sleep 0.2 ; /run/current-system/sw/bin/scrot -s /tmp/screenSel.png") , ("M-s s", spawn "sleep 0.2 ; /run/current-system/sw/bin/scrot -s /tmp/screenSel.png")

View file

@ -1,9 +1,19 @@
Config { Config {
font = "xft:Iosevka Term:style=Regular:size=8" font = "xft:Fira Code:style=Regular:size=9"
, template = " %UnsafeStdinReader%}{%date% " , template = " %UnsafeStdinReader%}{%battery% <fn=1></fn> %date% "
, commands = , commands =
[ Run UnsafeStdinReader [ Run UnsafeStdinReader
, Run Date "%A %d %B %H:%M %Z" "date" 10 , Run Date "%A %d %B %H:%M %Z" "date" 10
, Run Battery [ "--template", "<acstatus> <left>% (<timeleft>, <watts>W)"
, "-L", "25"
, "-H", "35"
, "-l", "#DC322F"
, "-n", "#CB4B16"
, "--"
, "-O", "<fn=1></fn>"
, "-i", "<fn=1></fn>"
, "-o", "<fn=1></fn>"
] 50
] ]
, bgColor = "#002b36" , bgColor = "#002b36"
, fgColor = "#839496" , fgColor = "#839496"

View file

@ -34,12 +34,15 @@ layouts = toggleLayouts fullscreen tiled
-- For className, use the second value that xprop gives you. -- For className, use the second value that xprop gives you.
-------------- Here be the law of windows -------------- Here be the law of windows
myManageHook = composeOne myManageHook = composeOne
[ className =? "Pinentry" -?> doFloat [ className =? "Pavucontrol" -?> doShift "music"
, className =? "mpv" -?> doFullFloat <+> (doShift "flims") , className =? "Pinentry" -?> doFloat
, className =? "Steam" -?> doShift "steam" , className =? "Steam" -?> doShift "steam"
, className =? "VirtualBox" -?> doFloat
, className =? "csgo_linux64" -?> doShift "csgo" , className =? "csgo_linux64" -?> doShift "csgo"
, className =? "Pavucontrol" -?> doShift "music" , className =? "mpv" -?> doFullFloat <+> (doShift "flims")
, className =? "qemu-system-x86_64" -?> doFloat
, className =? "qutebrowser" -?> doShift "web" , className =? "qutebrowser" -?> doShift "web"
, isDialog -?> doCenterFloat
, isDialog -?> doCenterFloat , isDialog -?> doCenterFloat
-- Move transient windows to their parent: -- Move transient windows to their parent: