Added xmonad and leftwm configs

This commit is contained in:
2022-06-17 10:25:17 +00:00
parent cf9c145628
commit 0d9a76a12f
14 changed files with 847 additions and 2 deletions

376
leftwm/config.toml Normal file
View File

@@ -0,0 +1,376 @@
modkey = "Mod4"
mousekey = "Mod4"
workspaces = []
tags = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10" ]
layouts = [
"MainAndVertStack",
"MainAndHorizontalStack",
# "MainAndDeck",
#"GridHorizontal",
# "EvenHorizontal",
# "EvenVertical",
# "Fibonacci",
# "LeftMain",
# "CenterMain",
# "CenterMainBalanced",
# "CenterMainFluid",
# "Monocle",
# "RightWiderLeftStack",
# "LeftWiderRightStack"
]
layout_mode = "Tag"
insert_behavior = "Bottom"
disable_current_tag_swap = false
disable_tile_drag = true
focus_behaviour = "Sloppy"
focus_new_windows = true
disable_window_snap = true
window_rules = [
{window_class = "firefox", window_title = "Mozilla Firefox$", spawn_on_tag = 1},
{window_class = "TelegramDesktop", spawn_on_tag = 9},
{window_class = "Signal", spawn_on_tag = 9},
{window_class = "Rocket.Chat", spawn_on_tag = 9},
{window_class = "Element", spawn_on_tag = 9},
{window_class = "Thunderbird", spawn_on_tag = 10},
{window_class = "zoom", spawn_on_tag = 5},
# {window_title = "Manjaro Settings Manager", spawn_floating = true},
# {window_class = "Pamac-manager", spawn_floating = true},
# {window_class = "Pamac-updater", spawn_floating = true},
# {window_class = "Qalculate-gtk", spawn_floating = true},
]
[[keybind]]
command = "SetLayout"
value = "Monocle"
modifier = ["modkey"]
key = "m"
[[scratchpad]]
name = "calculator"
value = "qalculate-gtk"
[[keybind]]
command = "ToggleScratchPad"
value = "calculator"
modifier = ["modkey"]
key = "c"
[[keybind]]
command = "Execute"
value = "~/.config/leftwm/scripts/dzen_exit_menu.pl"
modifier = ["modkey", "Shift"]
key = "e"
[[keybind]]
command = "Execute"
value = "firefox"
modifier = ["modkey"]
key = "b"
[[keybind]]
command = "Execute"
value = "krusader"
modifier = ["modkey"]
key = "t"
[[keybind]]
command = "Execute"
value = "rofi -show run #dmenu_recency -i"
modifier = ["modkey"]
key = "d"
[[keybind]]
command = "Execute"
value = "alacritty"
modifier = ["modkey"]
key = "Return"
[[keybind]]
command = "ToggleFullScreen"
value = ""
modifier = ["modkey"]
key = "f"
[[keybind]]
command = "ToggleFloating"
value = ""
modifier = ["modkey", "Shift"]
key = "space"
[[keybind]]
command = "CloseWindow"
value = ""
modifier = ["modkey"]
key = "q"
[[keybind]]
command = "CloseWindow"
value = ""
modifier = ["modkey"]
key = "x"
[[keybind]]
command ="SoftReload"
value = ""
modifier = ["modkey", "Shift"]
key = "r"
#[[keybind]]
#command = "MoveToLastWorkspace"
#value = ""
#modifier = ["modkey", "Shift"]
#key = "w"
#[[keybind]]
#command = "SwapTags"
#value = ""
#modifier = ["modkey"]
#key = "w"
#[[keybind]]
#command = "MoveWindowUp"
#value = ""
#modifier = ["modkey", "Shift"]
#key = "k"
#[[keybind]]
#command = "MoveWindowDown"
#value = ""
#modifier = ["modkey", "Shift"]
#key = "j"
#[[keybind]]
#command = "MoveWindowTop"
#value = ""
#modifier = ["modkey", "Shift"]
#key = "Return"
#[[keybind]]
#command = "FocusWindowUp"
#value = ""
#modifier = ["modkey"]
#key = "k"
#[[keybind]]
#command = "FocusWindowDown"
#value = ""
#modifier = ["modkey"]
#key = "j"
#[[keybind]]
#command = "NextLayout"
#value = ""
#modifier = ["modkey", "Control"]
#key = "k"
#[[keybind]]
#command = "PreviousLayout"
#value = ""
#modifier = ["modkey", "Control"]
#key = "j"
#[[keybind]]
#command = "FocusWorkspaceNext"
#value = ""
#modifier = ["modkey"]
#key = "l"
#[[keybind]]
#command = "FocusWorkspacePrevious"
#value = ""
#modifier = ["modkey"]
#key = "h"
[[keybind]]
command = "FocusWindowUp"
value = ""
modifier = ["modkey"]
key = "Up"
[[keybind]]
command = "FocusWindowDown"
value = ""
modifier = ["modkey"]
key = "Down"
[[keybind]]
command = "FocusWindowTop"
value = "true"
modifier = ["modkey"]
key = "Left"
[[keybind]]
command = "FocusWindowTop"
value = "true"
modifier = ["modkey"]
key = "Right"
[[keybind]]
command = "MoveWindowUp"
value = ""
modifier = ["modkey", "Shift"]
key = "Up"
[[keybind]]
command = "MoveWindowDown"
value = ""
modifier = ["modkey", "Shift"]
key = "Down"
[[keybind]]
command = "MoveWindowTop"
value = ""
modifier = ["modkey", "Shift"]
key = "Left"
[[keybind]]
command = "MoveWindowTop"
value = ""
modifier = ["modkey", "Shift"]
key = "Right"
[[keybind]]
command = "NextLayout"
value = ""
modifier = ["modkey", "Control"]
key = "Up"
[[keybind]]
command = "RotateTag"
value = ""
modifier = ["modkey", "Control"]
key = "Down"
#[[keybind]]
#command = "FocusWorkspaceNext"
#value = ""
#modifier = ["modkey"]
#key = "Right"
#[[keybind]]
#command = "FocusWorkspacePrevious"
#value = ""
#modifier = ["modkey"]
#key = "Left"
[[keybind]]
command = "GotoTag"
value = "1"
modifier = ["modkey"]
key = "1"
[[keybind]]
command = "GotoTag"
value = "2"
modifier = ["modkey"]
key = "2"
[[keybind]]
command = "GotoTag"
value = "3"
modifier = ["modkey"]
key = "3"
[[keybind]]
command = "GotoTag"
value = "4"
modifier = ["modkey"]
key = "4"
[[keybind]]
command = "GotoTag"
value = "5"
modifier = ["modkey"]
key = "5"
[[keybind]]
command = "GotoTag"
value = "6"
modifier = ["modkey"]
key = "6"
[[keybind]]
command = "GotoTag"
value = "7"
modifier = ["modkey"]
key = "7"
[[keybind]]
command = "GotoTag"
value = "8"
modifier = ["modkey"]
key = "8"
[[keybind]]
command = "GotoTag"
value = "9"
modifier = ["modkey"]
key = "9"
[[keybind]]
command = "GotoTag"
value = "10"
modifier = ["modkey"]
key = "0"
[[keybind]]
command = "MoveToTag"
value = "1"
modifier = ["modkey", "Shift"]
key = "1"
[[keybind]]
command = "MoveToTag"
value = "2"
modifier = ["modkey", "Shift"]
key = "2"
[[keybind]]
command = "MoveToTag"
value = "3"
modifier = ["modkey", "Shift"]
key = "3"
[[keybind]]
command = "MoveToTag"
value = "4"
modifier = ["modkey", "Shift"]
key = "4"
[[keybind]]
command = "MoveToTag"
value = "5"
modifier = ["modkey", "Shift"]
key = "5"
[[keybind]]
command = "MoveToTag"
value = "6"
modifier = ["modkey", "Shift"]
key = "6"
[[keybind]]
command = "MoveToTag"
value = "7"
modifier = ["modkey", "Shift"]
key = "7"
[[keybind]]
command = "MoveToTag"
value = "8"
modifier = ["modkey", "Shift"]
key = "8"
[[keybind]]
command = "MoveToTag"
value = "9"
modifier = ["modkey", "Shift"]
key = "9"
[[keybind]]
command = "MoveToTag"
value = "10"
modifier = ["modkey", "Shift"]
key = "0"

View File

@@ -0,0 +1,21 @@
#!/bin/perl
use strict;
use warnings;
my $message="System (l) lock, (e) logout, (r) reboot, (s) shutdown";
my $screen_height=1080;
my $message_height=34;
my %actions;
$actions{"l"} = "i3lock --ignore-empty-password --color 000000";
$actions{"e"} = "pkill leftwm";
$actions{"r"} = "systemctl reboot";
$actions{"s"} = "systemctl poweroff";
my @dzen_actions;
while ((my $key, my $action) = each (%actions)){
push @dzen_actions, "key_$key=exit,exec:$action";
}
my $joined_actions = join(";", @dzen_actions);
print "$joined_actions";
`echo "$message" | dzen2 -h $message_height -p -y $screen_height -e "onstart=grabkeys;key_Escape=exit;key_Return=exit;button1=exit;$joined_actions"`;

211
leftwm/themes.toml Normal file
View File

@@ -0,0 +1,211 @@
[[repos]]
url = "https://raw.githubusercontent.com/leftwm/leftwm-community-themes/master/known.toml"
name = "community"
definitions_version = 1
[[repos.themes]]
name = "Orange Forest"
repository = "https://github.com/PVautour/leftwm-theme-orange-forest/"
commit = "*"
version = "0.0.2"
leftwm_versions = "^0.3.0"
current = false
[[repos.themes]]
name = "Coffee"
repository = "https://github.com/lex148/leftwm-coffee/"
commit = "*"
version = "0.0.1"
leftwm_versions = "<0.3.0"
current = false
[[repos.themes]]
name = "Soothe"
repository = "https://github.com/b4skyx/leftwm-soothe/"
commit = "*"
version = "0.0.1"
leftwm_versions = "<0.3.0"
current = false
relative_directory = "theme/"
[[repos.themes]]
name = "TNG"
repository = "https://github.com/lex148/leftwm-tng/"
commit = "*"
version = "0.0.1"
leftwm_versions = "<0.3.0"
current = false
[[repos.themes]]
name = "Windows XP"
repository = "https://github.com/lex148/leftwm-windowsxp/"
commit = "*"
version = "0.0.1"
leftwm_versions = "<0.3.0"
current = false
[[repos.themes]]
name = "Dracula Rounded"
directory = "/home/julian/.config/leftwm/themes/Dracula Rounded"
repository = "https://github.com/AethanFoot/leftwm-theme-dracula-rounded/"
commit = "*"
version = "0.0.3"
leftwm_versions = "^0.3.0"
current = false
[[repos.themes]]
name = "Forest"
directory = "/home/julian/.config/leftwm/themes/Forest"
repository = "https://github.com/lex148/forest/"
commit = "*"
version = "0.0.1"
leftwm_versions = "^0.3.0"
current = true
[[repos.themes]]
name = "Ground Zero"
repository = "https://github.com/Qwart376/Ground-Zero/"
commit = "*"
version = "0.0.1"
leftwm_versions = "<0.3.0"
current = false
[[repos.themes]]
name = "Red Moon"
repository = "https://github.com/Qwart376/Red-Moon"
commit = "*"
version = "0.0.1"
leftwm_versions = "<0.3.0"
current = false
[[repos.themes]]
name = "Blue Coffee"
directory = "/home/julian/.config/leftwm/themes/Blue Coffee"
repository = "https://github.com/Qwart376/Blue-Coffee/"
commit = "*"
version = "0.0.1"
leftwm_versions = "<0.3.0"
current = false
[[repos.themes]]
name = "sunflower"
repository = "https://github.com/mautamu/leftwm-sunflower/"
commit = "*"
version = "0.1.2"
leftwm_versions = "^0.2.11, <0.3.0"
current = false
[[repos.themes]]
name = "Bumblebee"
repository = "https://github.com/mfdorst/leftwm-bumblebee/"
commit = "*"
version = "0.0.1"
leftwm_versions = "^0.2.8, <0.3.0"
current = false
[[repos.themes]]
name = "Sunset"
repository = "https://github.com/Syudagye/leftwm-sunset"
commit = "*"
version = "0.0.1"
leftwm_versions = "<0.3.0"
current = false
[[repos.themes]]
name = "Garden"
directory = "/home/julian/.config/leftwm/themes/Garden"
repository = "https://github.com/taylor85345/leftwm-theme-garden"
commit = "*"
version = "0.0.4"
leftwm_versions = ">0.2.7"
current = false
[[repos.themes]]
name = "Epitaph"
directory = "/home/julian/.config/leftwm/themes/Epitaph"
repository = "https://github.com/VentGrey/Epitaph"
commit = "*"
version = "0.0.2"
leftwm_versions = "*"
current = false
[[repos.themes]]
name = "Ocean-night"
directory = "/home/julian/.config/leftwm/themes/Ocean-night"
repository = "https://github.com/TheRoniOne/ocean-night"
commit = "*"
version = "0.0.1"
leftwm_versions = "*"
current = false
[[repos.themes]]
name = "Flamingo"
repository = "https://github.com/necaris/leftwm-theme-flamingo"
commit = "*"
version = "0.0.1"
leftwm_versions = ">0.2.7, <0.3.0"
current = false
[[repos.themes]]
name = "Amber"
repository = "https://github.com/di-effe/amber"
commit = "*"
version = "0.2.2"
leftwm_versions = ">0.2.10, <0.3.0"
current = false
[[repos.themes]]
name = "Catppuccin"
repository = "https://github.com/di-effe/catppuccin"
commit = "*"
version = "0.1.1"
leftwm_versions = ">0.2.10, <0.3.0"
current = false
[[repos.themes]]
name = "Molese"
repository = "https://github.com/m0lese/leftwm-config"
commit = "*"
version = "2.1.0"
leftwm_versions = ">0.2.10, <0.3.0"
current = false
[[repos.themes]]
name = "Double Bar"
directory = "/home/julian/.config/leftwm/themes/Double Bar"
repository = "https://github.com/PeterDauwe/doublebar/"
commit = "*"
version = "0.0.2"
leftwm_versions = "^0.3.0"
current = false
[[repos.themes]]
name = "SpaceJelly"
repository = "https://gitlab.com/jchand99/space_jelly"
commit = "*"
version = "1.0.0"
leftwm_versions = ">0.2.10, <0.3.0"
current = false
[[repos.themes]]
name = "Ascent"
directory = "/home/julian/.config/leftwm/themes/Ascent"
repository = "https://gitlab.com/mWalrus/ascent"
commit = "*"
version = "1.0.0"
leftwm_versions = ">0.2.7"
current = false
[[repos.themes]]
name = "Zexanima"
repository = "https://github.com/calebgasser/zexanima-leftwm-theme/tree/develop"
commit = "*"
version = "0.0.1"
leftwm_versions = ">0.3.0"
current = false
[[repos]]
url = "localhost"
name = "LOCAL"
definitions_version = 1
themes = []

1
leftwm/themes/current Submodule

Submodule leftwm/themes/current added at 129901d8aa