diff --git a/configs/openbox/autostart b/configs/openbox/autostart index c7ccdc6..b845f88 100644 --- a/configs/openbox/autostart +++ b/configs/openbox/autostart @@ -1,3 +1,4 @@ hsetroot -cover ~/.dotfiles/assets/wallpapers/kendal.png xcompmgr & polybar top & +polybar tray & diff --git a/configs/openbox/rc.xml b/configs/openbox/rc.xml index bd57db4..20d97de 100644 --- a/configs/openbox/rc.xml +++ b/configs/openbox/rc.xml @@ -1,11 +1,49 @@ <?xml version="1.0" encoding="UTF-8"?> <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> + <resistance> + <strength>10</strength> + <screen_edge_strength>20</screen_edge_strength> + </resistance> + <desktops> + <number>4</number> + <firstdesk>1</firstdesk> + </desktops> <keyboard> <keybind key="A-d"> <action name="Execute"> <command>rofi -show combi -modes combi -combi-modes "window,drun,run"</command> </action> </keybind> + <keybind key="A-Left"> + <action name="GoToDesktop"> + <to>previous</to> + </action> + </keybind> + <keybind key="A-Right"> + <action name="GoToDesktop"> + <to>next</to> + </action> + </keybind> + <keybind key="A-1"> + <action name="GoToDesktop"> + <to>1</to> + </action> + </keybind> + <keybind key="A-2"> + <action name="GoToDesktop"> + <to>2</to> + </action> + </keybind> + <keybind key="A-3"> + <action name="GoToDesktop"> + <to>3</to> + </action> + </keybind> + <keybind key="A-4"> + <action name="GoToDesktop"> + <to>4</to> + </action> + </keybind> </keyboard> </openbox_config> diff --git a/nixos/home.nix b/nixos/home.nix index ecec06f..a26c7d0 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -55,11 +55,11 @@ in script = "polybar &"; settings = let - background = "#00000000"; + background = "#0000"; foreground = "#fff"; - color0 = "#ffd9eafd"; - color1 = "#ffbcccdc"; - color2 = "#ff9aa6b2"; + color0 = "#d9eafd"; + color1 = "#bcccdc"; + color2 = "#9aa6b2"; in { "global/wm" = { margin-top = 2; @@ -78,6 +78,15 @@ in offset-y = 14; padding = 2; }; + "bar/tray" = { + background = color0; + foreground = "#000"; + bottom = "true"; + width = "100%"; + height = 32; + font-0 = "GohuFont:style=Regular:size=14;3"; + modules-left = "tray"; + }; "module/cpu" = { type = "internal/cpu"; @@ -114,6 +123,10 @@ in label-padding = 2; interval = 5; }; + "module/tray" = { + type = "internal/tray"; + tray-spacing = "8px"; + }; }; }; };