Compare commits

..

No commits in common. "2aeb68cbe9357f1a24a3a994b43cac742afb977b" and "7e1544eaf9317a1bee27a5101ca489a44069083f" have entirely different histories.

3 changed files with 113 additions and 154 deletions

View file

@ -7,169 +7,129 @@
// A WindowManager for Adventurers (____/ // A WindowManager for Adventurers (____/
// For info about configuration please visit https://github.com/leftwm/leftwm/wiki // For info about configuration please visit https://github.com/leftwm/leftwm/wiki
#![ enable ( implicit_some ) ] #![enable(implicit_some)]
#![ enable ( unwrap_newtypes ) ] #![enable(unwrap_newtypes)]
( (
modkey: "Mod1", modkey: "Mod4",
mousekey: "Mod4", mousekey: "Mod4",
tags : [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11","12" ],
layout_mode : Workspace,
workspaces: [ workspaces: [
( output : "eDP-1", (output: "eDP-1", x: 0, y: 0, width: 1920, height: 1080)
x : 0, y : 0,
width : 1920, height : 1080
)
], ],
tags: [
disable_cursor_reposition_on_resize : false, "1",
sloppy_mouse_follows_focus : true, "2",
disable_current_tag_swap : false, "3",
auto_derive_workspaces : true, "4",
create_follows_cursor : None, "5",
single_window_border : true, "6",
disable_window_snap : true, "7",
disable_tile_drag : false, "8",
focus_new_windows : true, "9",
max_window_width : None, "10",
insert_behavior : Bottom, "11",
focus_behavior : Sloppy, "12"
window_rules : [ ], ],
state_path : None, max_window_width: None,
layouts: [ layouts: [
"MainAndVertStack", "MainAndVertStack",
"EvenHorizontal", "EvenHorizontal",
"Grid", "Grid",
], ],
layout_definitions: [ layout_definitions: [
( name : "MainAndVertStack", (name: "MainAndVertStack", flip: None, rotate: North, reserve: None, columns: (flip: None, rotate: North, main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical), stack: (flip: None, rotate: North, split: Horizontal), second_stack: None)),
(name: "EvenHorizontal", flip: None, rotate: North, reserve: None, columns: (flip: None, rotate: North, main: None, stack: (flip: None, rotate: North, split: Vertical), second_stack: None)),
reserve : None, (name: "Monocle", flip: None, rotate: North, reserve: None, columns: (flip: None, rotate: North, main: None, stack: (flip: None, rotate: North, split: None), second_stack: None)),
rotate : North, (name: "Grid", flip: None, rotate: North, reserve: None, columns: (flip: None, rotate: North, main: None, stack: (flip: None, rotate: North, split: Grid), second_stack: None)),
flip : None, (name: "Fibonacci", flip: None, rotate: North, reserve: None, columns: (flip: None, rotate: North, main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical), stack: (flip: None, rotate: North, split: Fibonacci), second_stack: None)),
(name: "Dwindle", flip: None, rotate: North, reserve: None, columns: (flip: None, rotate: North, main: (count: 1, size: 0.5, flip: None, rotate: North, split: Vertical), stack: (flip: None, rotate: North, split: Dwindle), second_stack: None)),
columns : (
second_stack : None,
rotate : North,
flip : None,
stack: (
rotate : North,
split : Horizontal,
flip : None
)
),
main: (
rotate : North,
split : Vertical,
count : 1,
size : 0.5,
)
),
( name : "Grid",
reserve : None,
rotate : North,
flip : None,
main : None,
columns: (
second_stack: None,
rotate: North,
stack: ( rotate: North, split: Grid, flip: None ),
flip: None,
main: None,
)
),
( name : "EvenHorizontal",
reserve : None,
rotate : North,
flip : None,
columns:
( second_stack : None,
rotate : North,
flip : None,
main : None,
stack : ( flip: None, rotate: North, split: Vertical ),
)
),
], ],
layout_mode: Tag,
insert_behavior: Bottom,
scratchpad: [ scratchpad: [
( name : "Alacritty", (name: "Alacritty", value: "alacritty", x: 10, y: 32, width: 1900, height: 200),
value : "alacritty",
x : 10,
y : 32,
width : 1900,
height : 200,
)
], ],
window_rules: [],
disable_current_tag_swap: false,
disable_tile_drag: false,
disable_window_snap: true,
focus_behaviour: Sloppy,
focus_new_windows: true,
single_window_border: true,
sloppy_mouse_follows_focus: true,
create_follows_cursor: None,
auto_derive_workspaces: true,
disable_cursor_reposition_on_resize: false,
keybind: [ keybind: [
( modifier: [ "modkey" ], key: "Return", command: MoveWindowTop , value: "" ), // General keybinds
( modifier: [ "modkey" ], key: "h" , command: FocusWorkspacePrevious , value: "" ), (command: HardReload, value: "", modifier: ["modkey", "Shift"], key: "b"),
( modifier: [ "modkey" ], key: "l" , command: FocusWorkspaceNext , value: "" ), (command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "r"),
( modifier: [ "modkey" ], key: "f" , command: ToggleFullScreen , value: "" ), (command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"),
( modifier: [ "modkey" ], key: "j" , command: FocusWindowDown , value: "" ), (command: Execute, value: "slock", modifier: ["modkey", "Control"], key: "l"),
( modifier: [ "modkey" ], key: "t" , command: FloatingToTile , value: "" ), (command: Execute, value: "rofi -show run", modifier: ["modkey"], key: "p"),
( modifier: [ "modkey" ], key: "k" , command: FocusWindowUp , value: "" ), (command: ToggleScratchPad, value: "Alacritty", modifier: ["modkey", "Shift"], key: "p"),
( modifier: [ "modkey" ], key: "p" , command: Execute , value: "rofi -show run" ), (command: Execute, value: "maim -s --format png /dev/stdout | xclip -selection clipboard -t image/png -i", modifier: ["modkey"], key: "d"),
( modifier: [ "modkey" ], key: "m" , command: Execute , value: "mumble" ), // Application keybinds
( modifier: [ "modkey", "Shift" ], key: "Return", command: Execute , value: "alacritty" ), // (command: Execute, value: "sh -e dmenu_run", modifier: ["modkey"], key: "p"),
( modifier: [ "modkey", "Shift" ], key: "w" , command: MoveToLastWorkspace , value: "" ), (command: Execute, value: "alacritty", modifier: ["modkey", "Shift"], key: "Return"),
( modifier: [ "modkey", "Shift" ], key: "p" , command: ToggleScratchPad , value: "Alacritty" ), (command: Execute, value: "firefox", modifier: ["modkey"], key: "i"),
( modifier: [ "modkey", "Shift" ], key: "j" , command: MoveWindowDown , value: "" ), (command: Execute, value: "brave", modifier: ["modkey", "Shift"], key: "i"),
( modifier: [ "modkey", "Shift" ], key: "k" , command: MoveWindowUp , value: "" ), (command: Execute, value: "steam", modifier: ["modkey", "Shift"], key: "s"),
( modifier: [ "modkey", "Shift" ], key: "c" , command: CloseWindow , value: "" ), (command: Execute, value: "obs", modifier: ["modkey", "Shift"], key: "o"),
( modifier: [ "modkey", "Shift" ], key: "r" , command: SoftReload , value: "" ), (command: Execute, value: "telegram-desktop", modifier: ["modkey", "Control"], key: "t"),
( modifier: [ "modkey", "Shift" ], key: "b" , command: HardReload , value: "" ), (command: Execute, value: "signal-desktop", modifier: ["modkey", "Control"], key: "s"),
( modifier: [ "modkey", "Shift" ], key: "i" , command: Execute , value: "firefox" ), (command: Execute, value: "element-desktop", modifier: ["modkey", "Control"], key: "e"),
( modifier: [ "modkey", "Shift" ], key: "s" , command: Execute , value: "steam" ), (command: Execute, value: "webcord", modifier: ["modkey", "Control"], key: "d"),
( modifier: [ "modkey", "Shift" ], key: "o" , command: Execute , value: "obs" ), (command: Execute, value: "mumble", modifier: ["modkey"], key: "m"),
// Window keybinds
(command: ToggleFullScreen, value: "", modifier: ["modkey"], key: "f"),
(command: SwapTags, value: "", modifier: ["modkey"], key: "w"),
(command: MoveToLastWorkspace, value: "", modifier: ["modkey", "Shift"], key: "w"),
(command: CloseWindow, value: "", modifier: ["modkey", "Shift"], key: "c"),
(command: FloatingToTile, value: "", modifier: ["modkey"], key: "t"),
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "k"),
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "Up"),
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "j"),
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "Down"),
(command: MoveWindowTop, value: "", modifier: ["modkey"], key: "Return"),
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "k"),
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "Up"),
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "j"),
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "Down"),
// Layout keybinds
(command: NextLayout, value: "", modifier: ["modkey", "Control"], key: "k"),
(command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "j"),
(command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "l"),
(command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "h"),
( (command: NextLayout, value: "", modifier: ["modkey", "Control"], key: "Up"),
modifier: [ "modkey" ], key: "d" , command: Execute , (command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "Down"),
value: (command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "Right"),
"maim -s --format png /dev/stdout | xclip -selection clipboard -t image/png -i", (command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "Left"),
), // Tag keybinds
(command: GotoTag, value: "1", modifier: ["modkey"], key: "F1"),
( modifier: [ "modkey" ], key : "F1", command: GotoTag, value : "1" ), (command: GotoTag, value: "2", modifier: ["modkey"], key: "F2"),
( modifier: [ "modkey" ], key : "F2", command: GotoTag, value : "2" ), (command: GotoTag, value: "3", modifier: ["modkey"], key: "F3"),
( modifier: [ "modkey" ], key : "F3", command: GotoTag, value : "3" ), (command: GotoTag, value: "4", modifier: ["modkey"], key: "F4"),
( modifier: [ "modkey" ], key : "F4", command: GotoTag, value : "4" ), (command: GotoTag, value: "5", modifier: ["modkey"], key: "F5"),
( modifier: [ "modkey" ], key : "F5", command: GotoTag, value : "5" ), (command: GotoTag, value: "6", modifier: ["modkey"], key: "F6"),
( modifier: [ "modkey" ], key : "F6", command: GotoTag, value : "6" ), (command: GotoTag, value: "7", modifier: ["modkey"], key: "F7"),
( modifier: [ "modkey" ], key : "F7", command: GotoTag, value : "7" ), (command: GotoTag, value: "8", modifier: ["modkey"], key: "F8"),
( modifier: [ "modkey" ], key : "F8", command: GotoTag, value : "8" ), (command: GotoTag, value: "9", modifier: ["modkey"], key: "F9"),
( modifier: [ "modkey" ], key : "F9", command: GotoTag, value : "9" ), (command: GotoTag, value: "10", modifier: ["modkey"], key: "F10"),
( modifier: [ "modkey" ], key : "F10", command: GotoTag, value : "10" ), (command: GotoTag, value: "11", modifier: ["modkey"], key: "F11"),
( modifier: [ "modkey" ], key : "F11", command: GotoTag, value : "11" ), (command: GotoTag, value: "12", modifier: ["modkey"], key: "F12"),
( modifier: [ "modkey" ], key : "F12", command: GotoTag, value : "12" ), (command: MoveToTag, value: "1", modifier: ["modkey", "Shift"], key: "F1"),
( modifier: [ "modkey", "Shift" ], key : "F1", command: MoveToTag, value : "1" ), (command: MoveToTag, value: "2", modifier: ["modkey", "Shift"], key: "F2"),
( modifier: [ "modkey", "Shift" ], key : "F2", command: MoveToTag, value : "2" ), (command: MoveToTag, value: "3", modifier: ["modkey", "Shift"], key: "F3"),
( modifier: [ "modkey", "Shift" ], key : "F3", command: MoveToTag, value : "3" ), (command: MoveToTag, value: "4", modifier: ["modkey", "Shift"], key: "F4"),
( modifier: [ "modkey", "Shift" ], key : "F4", command: MoveToTag, value : "4" ), (command: MoveToTag, value: "5", modifier: ["modkey", "Shift"], key: "F5"),
( modifier: [ "modkey", "Shift" ], key : "F5", command: MoveToTag, value : "5" ), (command: MoveToTag, value: "6", modifier: ["modkey", "Shift"], key: "F6"),
( modifier: [ "modkey", "Shift" ], key : "F6", command: MoveToTag, value : "6" ), (command: MoveToTag, value: "7", modifier: ["modkey", "Shift"], key: "F7"),
( modifier: [ "modkey", "Shift" ], key : "F7", command: MoveToTag, value : "7" ), (command: MoveToTag, value: "8", modifier: ["modkey", "Shift"], key: "F8"),
( modifier: [ "modkey", "Shift" ], key : "F8", command: MoveToTag, value : "8" ), (command: MoveToTag, value: "9", modifier: ["modkey", "Shift"], key: "F9"),
( modifier: [ "modkey", "Shift" ], key : "F9", command: MoveToTag, value : "9" ), (command: MoveToTag, value: "10", modifier: ["modkey", "Shift"], key: "F10"),
( modifier: [ "modkey", "Shift" ], key : "F10", command: MoveToTag, value : "10" ), (command: MoveToTag, value: "11", modifier: ["modkey", "Shift"], key: "F11"),
( modifier: [ "modkey", "Shift" ], key : "F11", command: MoveToTag, value : "11" ), (command: MoveToTag, value: "12", modifier: ["modkey", "Shift"], key: "F12"),
( modifier: [ "modkey", "Shift" ], key : "F12", command: MoveToTag, value : "12" ),
( modifier: [ "modkey", "Control" ], key: "k", command: PreviousLayout, value: "" ),
( modifier: [ "modkey", "Control" ], key: "j", command: NextLayout , value: "" ),
( modifier: [ "modkey", "Control" ], key: "t", command: Execute , value: "telegram-desktop" ),
( modifier: [ "modkey", "Control" ], key: "e", command: Execute , value: "element-desktop" ),
( modifier: [ "modkey", "Control" ], key: "s", command: Execute , value: "signal-desktop" ),
( modifier: [ "modkey", "Control" ], key: "w", command: Execute , value: "webcord" ),
], ],
state_path: None,
) )

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 KiB

View file

@ -29,7 +29,7 @@ leftwm-command "LoadTheme $SCRIPTPATH/theme.ron"
# Set background # Set background
if [ -x "$(command -v feh)" ]; then if [ -x "$(command -v feh)" ]; then
feh --bg-scale $HOME/wallpapers/background feh --bg-scale $SCRIPTPATH/background.jpeg
fi fi
# Boot dunst as notification daemon # Boot dunst as notification daemon
@ -37,11 +37,10 @@ if [ -x "$(command -v dunst)" ]; then
dunst &> /dev/null & dunst &> /dev/null &
fi fi
# TODO: Remove this. It's in the nix config now setxkbmap -layout us -variant dvp -option caps:escape -option compose:Muhenkan
setxkbmap -layout us -variant dvp -option caps:escape -option compose:94
# open eww 'bar' windows #open eww 'bar' windows
# This is a bit of an ugly hack; a more elegant way will hopefully be possible with a future `eww` version #this is a bit of an uggly hack, a more elegant way will hopefully be possible with a future `eww` version
sleep 1 sleep 1
index=0 index=0
sizes=( $(leftwm-state -q -n -t $SCRIPTPATH/sizes.liquid | sed -r '/^\s*$/d' ) ) sizes=( $(leftwm-state -q -n -t $SCRIPTPATH/sizes.liquid | sed -r '/^\s*$/d' ) )