From 065a8c8987f6619de5c16e18ff9ea76f0835233f Mon Sep 17 00:00:00 2001 From: roxwize Date: Sat, 30 Nov 2024 23:08:16 -0500 Subject: [PATCH] ~ --- .twmrc | 61 ++++++++++++++++++++++++++++++ nixos/home.nix | 22 +++-------- nixos/hosts/qemu/configuration.nix | 1 + 3 files changed, 68 insertions(+), 16 deletions(-) create mode 100644 .twmrc diff --git a/.twmrc b/.twmrc new file mode 100644 index 0000000..050902e --- /dev/null +++ b/.twmrc @@ -0,0 +1,61 @@ +AutoRelativeResize +DontMoveOff +NoBackingStore +NoCaseSensitive +NoDefaults +NoGrabServer +NoHighLight +NoTitleHighlight +OpaqueMove +ShowIconManager +SortIconManager +BorderWidth 1 +NoMenuShadows +ButtonIndent 0 +TitlePadding 4 +IconDirectory "~/.twm/icons/" +LeftTitleButton "resize.xbm" = f.resize +LeftTitleButton "wmenu.xbm" = f.nop +RightTitleButton "minimize.xbm" = f.iconify +RightTitleButton "close.xbm" = f.delete +Color { + BorderColor "#0d8778" + DefaultBackground "#0d8778" + DefaultForeground "#ffffff" + TitleBackground "#0d8778" + TitleForeground "#ffffff" + MenuTitleBackground "#b52f62" + MenuTitleForeground "#ffffff" + MenuBackground "#b52f62" + MenuForeground "#ffffff" + MenuBorderColor "#b52f62" + IconManagerBackground "#b52f62" + IconManagerForeground "#ffffff" +} +# window actions +Button1 = : root : f.menu "TwmWindows" +Button1 = : title : f.function "raise-lower-move" +Button3 = : root : f.menu "System" +Button3 = s : window : f.resize # SHIFT+MOUSE3 to resize +Function "raise-lower-move" { f.move f.raiselower } +# menus +menu "System" +{ + "System" f.title + "Icon manager" f.showiconmgr + "Restart twm" f.restart + "Take screenshot" !"flameshot gui&" + "" f.nop + "Applications" f.menu "Applications" + "Processes" !"kitty btop&" + "" f.nop + "Shutdown" !"shutdown now&" + "Restart" !"reboot&" +} +menu "Applications" +{ + "Applications" f.title + "Konsole" !"konsole&" + "Firefox" !"firefox&" + "VSCodium" !"codium&" +} diff --git a/nixos/home.nix b/nixos/home.nix index 81b9fb6..8867a04 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -9,7 +9,12 @@ in ]; home-manager.users.rae = { - home.stateVersion = "24.11"; + home = { + stateVersion = "24.11"; + file = { + ".twmrc".source = ../.twmrc; + }; + }; programs = { git = { @@ -17,21 +22,6 @@ in userName = "roxwize"; userEmail = "rae@roxwize.xyz"; }; -# plasma = { -# enable = true; -# panels = [ -# { -# location = "top"; -# height = 32; -# widgets = [ -# "org.kde.plasma.kickoff" -# "org.kde.plasma.icontasks" -# "org.kde.plasma.marginsseparator" -# "org.kde.plasma.digitalclock" -# ]; -# } -# ]; -# }; }; }; } diff --git a/nixos/hosts/qemu/configuration.nix b/nixos/hosts/qemu/configuration.nix index 7f241d5..6a72213 100644 --- a/nixos/hosts/qemu/configuration.nix +++ b/nixos/hosts/qemu/configuration.nix @@ -44,6 +44,7 @@ xkb.layout = "us"; windowManager = { i3.enable = true; + twm.enable = true; }; }; displayManager = {