This repository has been archived by the owner on Jul 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,21 @@ | ||
import objects, x11/x | ||
|
||
# config | ||
const | ||
# default mod key, run xmodmap to see what the mod keys are on your current keyboard layout | ||
# Mod1 is alt and Mod4 is super | ||
modifier* = Mod1Mask | ||
MOD* = Mod1Mask | ||
SHIFT* = ShiftMask | ||
|
||
# if it isn't obvious, hex values go here | ||
colours* = ( | ||
focused: "#fbfdff", | ||
unfocused: "#295eb3", | ||
background: "#232323") | ||
|
||
# in pixels | ||
frameWidth* = 2 | ||
|
||
init* = [ | ||
"xsetroot -solid \"" & colours.background & "\""] | ||
|
||
# store keybindings here | ||
keybindings* = [ | ||
# alt + shift + q will close the focused window | ||
initKey( closeWindow, | ||
key = "q", | ||
mods = modifier or ShiftMask), | ||
|
||
# alt + tab will cycle the focus through the windows | ||
initKey( | ||
nextWindow, | ||
key = "Tab", | ||
mods = modifier), | ||
|
||
# alt + . will set the focused window to the master window | ||
initKey( | ||
setMaster, | ||
key = "period", | ||
mods = modifier), | ||
|
||
# alt + return will open st, you can replace this with whatever your preferred terminal is | ||
initKey( | ||
spawnCustom, | ||
key = "Return", | ||
mods = modifier, | ||
command = "st")] | ||
key( MOD or SHIFT, "q", closeWindow ), # alt + shift + q will close the focused window | ||
key( MOD, "Tab", nextWindow ), # alt + tab will cycle the focus through the windows | ||
key( MOD, "period", setMaster ), # alt + period will set the focused window to the master window | ||
key( MOD, "Return", spawnCustom, "st")] # alt + return will open st, you can replace this with whatever your preferred terminal is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters