add initial unsanitised dotfiles
Adds the clearest current starting point of my dotfiles I can make out. There is no way to automate anything yet. Lots of stuff is missing from the nix configuration, which needs to be added per machine.
This commit is contained in:
commit
2c0e4f885e
26 changed files with 2531 additions and 0 deletions
137
leftwm/config_chell.ron
Normal file
137
leftwm/config_chell.ron
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
// _ ___ ___ _
|
||||
// | | / __)_ / __|_)
|
||||
// | | ____| |__| |_ _ _ _ ____ ____ ___ ____ | |__ _ ____ ____ ___ ____
|
||||
// | |/ _ ) __) _) | | | \ / ___) _ \| _ \| __) |/ _ | / ___) _ \| _ \
|
||||
// | ( (/ /| | | |_| | | | | | | ( (__| |_| | | | | | | ( ( | |_| | | |_| | | | |
|
||||
// |_|\____)_| \___)____|_|_|_| \____)___/|_| |_|_| |_|\_|| (_)_| \___/|_| |_|
|
||||
// A WindowManager for Adventurers (____/
|
||||
// For info about configuration please visit https://github.com/leftwm/leftwm/wiki
|
||||
|
||||
#![enable(implicit_some)]
|
||||
#![enable(unwrap_newtypes)]
|
||||
(
|
||||
modkey: "Mod1",
|
||||
mousekey: "Mod1",
|
||||
workspaces: [
|
||||
(output: "DP-1", x: 0, y: 0, width: 1920, height: 1080),
|
||||
(output: "DP-2", x: 1920, y: 0, width: 3840, height: 2160),
|
||||
(output: "HDMI-1", x: 5760, y: 0, width: 1920, height: 1080)
|
||||
],
|
||||
tags: [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9",
|
||||
"10",
|
||||
"11",
|
||||
"12"
|
||||
],
|
||||
max_window_width: None,
|
||||
layouts: [
|
||||
"MainAndVertStack",
|
||||
"EvenHorizontal",
|
||||
"Grid",
|
||||
],
|
||||
layout_definitions: [
|
||||
(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)),
|
||||
(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)),
|
||||
(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)),
|
||||
(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)),
|
||||
],
|
||||
layout_mode: Tag,
|
||||
insert_behavior: Bottom,
|
||||
scratchpad: [
|
||||
(name: "Alacritty", 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: [
|
||||
// General keybinds
|
||||
(command: HardReload, value: "", modifier: ["modkey", "Shift"], key: "b"),
|
||||
(command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "r"),
|
||||
(command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"),
|
||||
(command: Execute, value: "slock", modifier: ["modkey", "Control"], key: "l"),
|
||||
(command: Execute, value: "rofi -show run", modifier: ["modkey"], key: "p"),
|
||||
(command: ToggleScratchPad, value: "Alacritty", modifier: ["modkey", "Shift"], key: "p"),
|
||||
(command: Execute, value: "maim -s --format png /dev/stdout | xclip -selection clipboard -t image/png -i", modifier: ["modkey"], key: "d"),
|
||||
// Application keybinds
|
||||
// (command: Execute, value: "sh -e dmenu_run", modifier: ["modkey"], key: "p"),
|
||||
(command: Execute, value: "alacritty", modifier: ["modkey", "Shift"], key: "Return"),
|
||||
(command: Execute, value: "firefox", modifier: ["modkey"], key: "i"),
|
||||
(command: Execute, value: "brave", modifier: ["modkey", "Shift"], key: "i"),
|
||||
(command: Execute, value: "steam", modifier: ["modkey", "Shift"], key: "s"),
|
||||
(command: Execute, value: "obs", modifier: ["modkey", "Shift"], key: "o"),
|
||||
(command: Execute, value: "telegram-desktop", modifier: ["modkey", "Control"], key: "t"),
|
||||
(command: Execute, value: "signal-desktop", modifier: ["modkey", "Control"], key: "s"),
|
||||
(command: Execute, value: "element-desktop", modifier: ["modkey", "Control"], key: "e"),
|
||||
(command: Execute, value: "webcord", modifier: ["modkey", "Control"], key: "d"),
|
||||
(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"),
|
||||
(command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "Down"),
|
||||
(command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "Right"),
|
||||
(command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "Left"),
|
||||
// Tag keybinds
|
||||
(command: GotoTag, value: "1", modifier: ["modkey"], key: "F1"),
|
||||
(command: GotoTag, value: "2", modifier: ["modkey"], key: "F2"),
|
||||
(command: GotoTag, value: "3", modifier: ["modkey"], key: "F3"),
|
||||
(command: GotoTag, value: "4", modifier: ["modkey"], key: "F4"),
|
||||
(command: GotoTag, value: "5", modifier: ["modkey"], key: "F5"),
|
||||
(command: GotoTag, value: "6", modifier: ["modkey"], key: "F6"),
|
||||
(command: GotoTag, value: "7", modifier: ["modkey"], key: "F7"),
|
||||
(command: GotoTag, value: "8", modifier: ["modkey"], key: "F8"),
|
||||
(command: GotoTag, value: "9", modifier: ["modkey"], key: "F9"),
|
||||
(command: GotoTag, value: "10", modifier: ["modkey"], key: "F10"),
|
||||
(command: GotoTag, value: "11", modifier: ["modkey"], key: "F11"),
|
||||
(command: GotoTag, value: "12", modifier: ["modkey"], key: "F12"),
|
||||
(command: MoveToTag, value: "1", modifier: ["modkey", "Shift"], key: "F1"),
|
||||
(command: MoveToTag, value: "2", modifier: ["modkey", "Shift"], key: "F2"),
|
||||
(command: MoveToTag, value: "3", modifier: ["modkey", "Shift"], key: "F3"),
|
||||
(command: MoveToTag, value: "4", modifier: ["modkey", "Shift"], key: "F4"),
|
||||
(command: MoveToTag, value: "5", modifier: ["modkey", "Shift"], key: "F5"),
|
||||
(command: MoveToTag, value: "6", modifier: ["modkey", "Shift"], key: "F6"),
|
||||
(command: MoveToTag, value: "7", modifier: ["modkey", "Shift"], key: "F7"),
|
||||
(command: MoveToTag, value: "8", modifier: ["modkey", "Shift"], key: "F8"),
|
||||
(command: MoveToTag, value: "9", modifier: ["modkey", "Shift"], key: "F9"),
|
||||
(command: MoveToTag, value: "10", modifier: ["modkey", "Shift"], key: "F10"),
|
||||
(command: MoveToTag, value: "11", modifier: ["modkey", "Shift"], key: "F11"),
|
||||
(command: MoveToTag, value: "12", modifier: ["modkey", "Shift"], key: "F12"),
|
||||
],
|
||||
state_path: None,
|
||||
)
|
||||
135
leftwm/config_lamarr.ron
Normal file
135
leftwm/config_lamarr.ron
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
// _ ___ ___ _
|
||||
// | | / __)_ / __|_)
|
||||
// | | ____| |__| |_ _ _ _ ____ ____ ___ ____ | |__ _ ____ ____ ___ ____
|
||||
// | |/ _ ) __) _) | | | \ / ___) _ \| _ \| __) |/ _ | / ___) _ \| _ \
|
||||
// | ( (/ /| | | |_| | | | | | | ( (__| |_| | | | | | | ( ( | |_| | | |_| | | | |
|
||||
// |_|\____)_| \___)____|_|_|_| \____)___/|_| |_|_| |_|\_|| (_)_| \___/|_| |_|
|
||||
// A WindowManager for Adventurers (____/
|
||||
// For info about configuration please visit https://github.com/leftwm/leftwm/wiki
|
||||
|
||||
#![enable(implicit_some)]
|
||||
#![enable(unwrap_newtypes)]
|
||||
(
|
||||
modkey: "Mod4",
|
||||
mousekey: "Mod4",
|
||||
workspaces: [
|
||||
(output: "eDP-1", x: 0, y: 0, width: 1920, height: 1080)
|
||||
],
|
||||
tags: [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9",
|
||||
"10",
|
||||
"11",
|
||||
"12"
|
||||
],
|
||||
max_window_width: None,
|
||||
layouts: [
|
||||
"MainAndVertStack",
|
||||
"EvenHorizontal",
|
||||
"Grid",
|
||||
],
|
||||
layout_definitions: [
|
||||
(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)),
|
||||
(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)),
|
||||
(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)),
|
||||
(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)),
|
||||
],
|
||||
layout_mode: Tag,
|
||||
insert_behavior: Bottom,
|
||||
scratchpad: [
|
||||
(name: "Alacritty", 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: [
|
||||
// General keybinds
|
||||
(command: HardReload, value: "", modifier: ["modkey", "Shift"], key: "b"),
|
||||
(command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "r"),
|
||||
(command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"),
|
||||
(command: Execute, value: "slock", modifier: ["modkey", "Control"], key: "l"),
|
||||
(command: Execute, value: "rofi -show run", modifier: ["modkey"], key: "p"),
|
||||
(command: ToggleScratchPad, value: "Alacritty", modifier: ["modkey", "Shift"], key: "p"),
|
||||
(command: Execute, value: "maim -s --format png /dev/stdout | xclip -selection clipboard -t image/png -i", modifier: ["modkey"], key: "d"),
|
||||
// Application keybinds
|
||||
// (command: Execute, value: "sh -e dmenu_run", modifier: ["modkey"], key: "p"),
|
||||
(command: Execute, value: "alacritty", modifier: ["modkey", "Shift"], key: "Return"),
|
||||
(command: Execute, value: "firefox", modifier: ["modkey"], key: "i"),
|
||||
(command: Execute, value: "brave", modifier: ["modkey", "Shift"], key: "i"),
|
||||
(command: Execute, value: "steam", modifier: ["modkey", "Shift"], key: "s"),
|
||||
(command: Execute, value: "obs", modifier: ["modkey", "Shift"], key: "o"),
|
||||
(command: Execute, value: "telegram-desktop", modifier: ["modkey", "Control"], key: "t"),
|
||||
(command: Execute, value: "signal-desktop", modifier: ["modkey", "Control"], key: "s"),
|
||||
(command: Execute, value: "element-desktop", modifier: ["modkey", "Control"], key: "e"),
|
||||
(command: Execute, value: "webcord", modifier: ["modkey", "Control"], key: "d"),
|
||||
(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"),
|
||||
(command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "Down"),
|
||||
(command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "Right"),
|
||||
(command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "Left"),
|
||||
// Tag keybinds
|
||||
(command: GotoTag, value: "1", modifier: ["modkey"], key: "F1"),
|
||||
(command: GotoTag, value: "2", modifier: ["modkey"], key: "F2"),
|
||||
(command: GotoTag, value: "3", modifier: ["modkey"], key: "F3"),
|
||||
(command: GotoTag, value: "4", modifier: ["modkey"], key: "F4"),
|
||||
(command: GotoTag, value: "5", modifier: ["modkey"], key: "F5"),
|
||||
(command: GotoTag, value: "6", modifier: ["modkey"], key: "F6"),
|
||||
(command: GotoTag, value: "7", modifier: ["modkey"], key: "F7"),
|
||||
(command: GotoTag, value: "8", modifier: ["modkey"], key: "F8"),
|
||||
(command: GotoTag, value: "9", modifier: ["modkey"], key: "F9"),
|
||||
(command: GotoTag, value: "10", modifier: ["modkey"], key: "F10"),
|
||||
(command: GotoTag, value: "11", modifier: ["modkey"], key: "F11"),
|
||||
(command: GotoTag, value: "12", modifier: ["modkey"], key: "F12"),
|
||||
(command: MoveToTag, value: "1", modifier: ["modkey", "Shift"], key: "F1"),
|
||||
(command: MoveToTag, value: "2", modifier: ["modkey", "Shift"], key: "F2"),
|
||||
(command: MoveToTag, value: "3", modifier: ["modkey", "Shift"], key: "F3"),
|
||||
(command: MoveToTag, value: "4", modifier: ["modkey", "Shift"], key: "F4"),
|
||||
(command: MoveToTag, value: "5", modifier: ["modkey", "Shift"], key: "F5"),
|
||||
(command: MoveToTag, value: "6", modifier: ["modkey", "Shift"], key: "F6"),
|
||||
(command: MoveToTag, value: "7", modifier: ["modkey", "Shift"], key: "F7"),
|
||||
(command: MoveToTag, value: "8", modifier: ["modkey", "Shift"], key: "F8"),
|
||||
(command: MoveToTag, value: "9", modifier: ["modkey", "Shift"], key: "F9"),
|
||||
(command: MoveToTag, value: "10", modifier: ["modkey", "Shift"], key: "F10"),
|
||||
(command: MoveToTag, value: "11", modifier: ["modkey", "Shift"], key: "F11"),
|
||||
(command: MoveToTag, value: "12", modifier: ["modkey", "Shift"], key: "F12"),
|
||||
],
|
||||
state_path: None,
|
||||
)
|
||||
BIN
leftwm/themes/current/background.jpeg
Normal file
BIN
leftwm/themes/current/background.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 948 KiB |
19
leftwm/themes/current/down
Executable file
19
leftwm/themes/current/down
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
|
||||
#set background
|
||||
if [ -x "$(command -v feh)" ]; then
|
||||
feh --bg-scale $SCRIPTPATH/down.jpg
|
||||
fi
|
||||
|
||||
leftwm-command "UnloadTheme"
|
||||
|
||||
pkill compton
|
||||
pkill picom
|
||||
pkill polybar
|
||||
pkill conky
|
||||
pkill dunst
|
||||
if [ -x "$(command -v eww)" ]; then
|
||||
eww kill
|
||||
fi
|
||||
BIN
leftwm/themes/current/down.jpg
Normal file
BIN
leftwm/themes/current/down.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 539 B |
3
leftwm/themes/current/sizes.liquid
Normal file
3
leftwm/themes/current/sizes.liquid
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{% for workspace in workspaces %}
|
||||
{{workspace.w}}x{{workspace.h}}+{{workspace.x}}+{{workspace.y}}
|
||||
{% endfor %}
|
||||
19
leftwm/themes/current/template.liquid
Normal file
19
leftwm/themes/current/template.liquid
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{% assign mine_open = ' (button :class "ws-button-mine" :onclick "leftwm-command \"SendWorkspaceToTag ' %}
|
||||
{% assign visible_open = ' (button :class "ws-button-visible" :onclick "leftwm-command \"SendWorkspaceToTag ' %}
|
||||
{% assign busy_open = ' (button :class "ws-button-busy" :onclick "leftwm-command \"SendWorkspaceToTag ' %}
|
||||
{% assign close = '`)' %}
|
||||
{% assign unoccupied = ' (button :class "ws-button" :onclick "leftwm-command \"SendWorkspaceToTag ' %}
|
||||
|
||||
{{'(box :class "workspaces" :orientation "h" :space-evenly true :halign "start" :spacing 10'}}
|
||||
{% for tag in workspace.tags %}
|
||||
{% if tag.mine %}
|
||||
{{mine_open}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}}{{ tag.name }}{{close}}
|
||||
{% elsif tag.visible %}
|
||||
{{visible_open}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}}{{ tag.name }}{{close}}
|
||||
{% elsif tag.busy %}
|
||||
{{busy_open}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}}{{ tag.name }}{{close}}
|
||||
{% else %}
|
||||
{{unoccupied}}{{workspace.index | append: ' ' | append: tag.index | append: '\"" `'}}{{ "·" }}{{close}}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{{")"}}
|
||||
7
leftwm/themes/current/theme.ron
Normal file
7
leftwm/themes/current/theme.ron
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(
|
||||
border_width: 2,
|
||||
margin: 4,
|
||||
default_border_color: "#37474F",
|
||||
floating_border_color: "#225588",
|
||||
focused_border_color: "#885522",
|
||||
)
|
||||
51
leftwm/themes/current/up
Executable file
51
leftwm/themes/current/up
Executable file
|
|
@ -0,0 +1,51 @@
|
|||
#!/usr/bin/env bash
|
||||
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||
|
||||
#if path to liblinkt is not not exported do so:
|
||||
if [ -z "$LD_LIBRARY_PATH" ]; then
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib"
|
||||
fi
|
||||
|
||||
# Down the last running theme
|
||||
if [ -f "/tmp/leftwm-theme-down" ]; then
|
||||
/tmp/leftwm-theme-down
|
||||
rm /tmp/leftwm-theme-down
|
||||
fi
|
||||
ln -s $SCRIPTPATH/down /tmp/leftwm-theme-down
|
||||
|
||||
# start eww daemon
|
||||
eww daemon &
|
||||
|
||||
# Boot picom or compton if it exists
|
||||
if [ -x "$(command -v picom)" ]; then
|
||||
picom &> /dev/null &
|
||||
# picom &> /dev/null &
|
||||
elif [ -x "$(command -v compton)" ]; then
|
||||
compton &> /dev/null &
|
||||
fi
|
||||
|
||||
# Set the theme.ron config
|
||||
leftwm-command "LoadTheme $SCRIPTPATH/theme.ron"
|
||||
|
||||
# Set background
|
||||
if [ -x "$(command -v feh)" ]; then
|
||||
feh --bg-scale $SCRIPTPATH/background.jpeg
|
||||
fi
|
||||
|
||||
# Boot dunst as notification daemon
|
||||
if [ -x "$(command -v dunst)" ]; then
|
||||
dunst &> /dev/null &
|
||||
fi
|
||||
|
||||
setxkbmap -layout us -variant dvp -option caps:escape -option compose:Muhenkan
|
||||
|
||||
#open eww 'bar' windows
|
||||
#this is a bit of an uggly hack, a more elegant way will hopefully be possible with a future `eww` version
|
||||
sleep 1
|
||||
index=0
|
||||
sizes=( $(leftwm-state -q -n -t $SCRIPTPATH/sizes.liquid | sed -r '/^\s*$/d' ) )
|
||||
for size in "${sizes[@]}"
|
||||
do
|
||||
eww open bar --id bar$index --arg index=$index
|
||||
let index=index+1
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue