mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add dotfiles
This commit is contained in:
commit
39fe550b3e
45 changed files with 4363 additions and 0 deletions
109
modules/home/leftwm/default.nix
Normal file
109
modules/home/leftwm/default.nix
Normal file
|
|
@ -0,0 +1,109 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
||||
xdg.configFile."leftwm/themes/current/theme.toml".source = ./theme.toml;
|
||||
xdg.configFile."leftwm/themes/current/up".source = ./up;
|
||||
xdg.configFile."leftwm/themes/current/down".source = ./down;
|
||||
|
||||
xdg.configFile."leftwm/config.ron".text = ''
|
||||
#![enable(implicit_some)]
|
||||
(
|
||||
modkey: "Mod4",
|
||||
mousekey: "Mod4",
|
||||
workspaces: [],
|
||||
tags: [
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5",
|
||||
"6",
|
||||
"7",
|
||||
"8",
|
||||
"9",
|
||||
],
|
||||
max_window_width: None,
|
||||
layouts: [
|
||||
MainAndVertStack,
|
||||
MainAndHorizontalStack,
|
||||
MainAndDeck,
|
||||
GridHorizontal,
|
||||
EvenHorizontal,
|
||||
EvenVertical,
|
||||
Fibonacci,
|
||||
LeftMain,
|
||||
CenterMain,
|
||||
CenterMainBalanced,
|
||||
CenterMainFluid,
|
||||
Monocle,
|
||||
RightWiderLeftStack,
|
||||
LeftWiderRightStack,
|
||||
],
|
||||
layout_mode: Tag,
|
||||
insert_behavior: Bottom,
|
||||
scratchpad: [
|
||||
(name: "Alacritty", value: "alacritty", x: 860, y: 390, height: 300, width: 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,
|
||||
auto_derive_workspaces: true,
|
||||
keybind: [
|
||||
(command: Execute, value: "dmenu_run", modifier: ["modkey"], key: "p"),
|
||||
(command: Execute, value: "alacritty", modifier: ["modkey"], key: "Return"),
|
||||
(command: CloseWindow, value: "", modifier: ["modkey", "Shift"], key: "q"),
|
||||
(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: MoveToLastWorkspace, value: "", modifier: ["modkey", "Shift"], key: "w"),
|
||||
(command: SwapTags, value: "", modifier: ["modkey"], key: "w"),
|
||||
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "k"),
|
||||
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "j"),
|
||||
(command: MoveWindowTop, value: "", modifier: ["modkey", "Shift"], key: "Return"),
|
||||
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "k"),
|
||||
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "j"),
|
||||
(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: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "Up"),
|
||||
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "Down"),
|
||||
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "Up"),
|
||||
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "Down"),
|
||||
(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"),
|
||||
(command: GotoTag, value: "1", modifier: ["modkey"], key: "1"),
|
||||
(command: GotoTag, value: "2", modifier: ["modkey"], key: "2"),
|
||||
(command: GotoTag, value: "3", modifier: ["modkey"], key: "3"),
|
||||
(command: GotoTag, value: "4", modifier: ["modkey"], key: "4"),
|
||||
(command: GotoTag, value: "5", modifier: ["modkey"], key: "5"),
|
||||
(command: GotoTag, value: "6", modifier: ["modkey"], key: "6"),
|
||||
(command: GotoTag, value: "7", modifier: ["modkey"], key: "7"),
|
||||
(command: GotoTag, value: "8", modifier: ["modkey"], key: "8"),
|
||||
(command: GotoTag, value: "9", modifier: ["modkey"], key: "9"),
|
||||
(command: MoveToTag, value: "1", modifier: ["modkey", "Shift"], key: "1"),
|
||||
(command: MoveToTag, value: "2", modifier: ["modkey", "Shift"], key: "2"),
|
||||
(command: MoveToTag, value: "3", modifier: ["modkey", "Shift"], key: "3"),
|
||||
(command: MoveToTag, value: "4", modifier: ["modkey", "Shift"], key: "4"),
|
||||
(command: MoveToTag, value: "5", modifier: ["modkey", "Shift"], key: "5"),
|
||||
(command: MoveToTag, value: "6", modifier: ["modkey", "Shift"], key: "6"),
|
||||
(command: MoveToTag, value: "7", modifier: ["modkey", "Shift"], key: "7"),
|
||||
(command: MoveToTag, value: "8", modifier: ["modkey", "Shift"], key: "8"),
|
||||
(command: MoveToTag, value: "9", modifier: ["modkey", "Shift"], key: "9"),
|
||||
],
|
||||
state_path: None,
|
||||
)
|
||||
'';
|
||||
}
|
||||
6
modules/home/leftwm/down
Executable file
6
modules/home/leftwm/down
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
SCRIPTPATH="$HOME/config/leftwm/themes/current"
|
||||
|
||||
leftwm-command "UnloadTheme"
|
||||
|
||||
3
modules/home/leftwm/theme.toml
Normal file
3
modules/home/leftwm/theme.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
border_width = 1
|
||||
margin = 4
|
||||
focused_border_color = "#2cb8b5"
|
||||
13
modules/home/leftwm/up
Executable file
13
modules/home/leftwm/up
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
export SCRIPTPATH="$HOME/.config/leftwm/themes/current"
|
||||
|
||||
#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
|
||||
|
||||
#set the theme.toml config
|
||||
leftwm-command "LoadTheme $SCRIPTPATH/theme.toml"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue