diff options
Diffstat (limited to '')
-rw-r--r-- | .config/hypr/hyprland.conf | 21 | ||||
-rw-r--r-- | .config/waybar/config | 26 | ||||
-rw-r--r-- | .config/waybar/style.css | 5 |
3 files changed, 42 insertions, 10 deletions
diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 25d2434..0d90157 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -5,12 +5,17 @@ exec-once = nm-applet --indicator exec-once = blueman-applet exec-once = thunar --daemon exec-once = foot --server +exec-once = swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -f -c 000000' monitor = , preferred, auto, 1 -input { - follow_mouse = 1 - kb_layout = no +device:at-translated-set-2-keyboard { + kb_layout = no,us + kb_options = grp:alt_shift_toggle +} + +input { + follow_mouse = 1 touchpad { disable_while_typing = no natural_scroll = yes @@ -71,18 +76,18 @@ bind = $modkey SHIFT, Space, togglefloating, bind = $modkey, F, fullscreen, bind = $modkey SHIFT, T, pin, bind = $modkey, Q, killactive, -bind = $modkey SHIFT, Q, exit, +bind = $modkey CTRL, Q, exec, exec swaynag -t warning -m 'You pressed Super + Q. What do you want to do?' -B 'Log out' 'hyprctl dispatch exit' -B 'Reboot' 'reboot' -B 'Power off' 'poweroff' bind = $modkey, Tab, workspace, prev bind = $modkey, Left, workspace, e-1 bind = $modkey, Right, workspace, e+1 -bind = $modkey, Return, exec, alacritty +bind = $modkey, Return, exec, exec "$(which alacritty || which footclient)" # trigger when the switch is toggled -bindl=,switch:Lid Switch, exec,swaylock +bindl=,switch:Lid Switch, exec, exec swaylock # trigger when the switch is turning on -bindl=,switch:on:Lid Switch, exec,hyprctl keyword monitor "eDP-1, 1600x900, 0x0, 1" +bindl=,switch:on:Lid Switch, exec, hyprctl keyword monitor "eDP-1, 1600x900, 0x0, 1" # trigger when the switch is turning off -bindl=,switch:off:Lid Switch, exec,hyprctl keyword monitor "eDP-1, disable" +bindl=,switch:off:Lid Switch, exec, hyprctl keyword monitor "eDP-1, disable" # Change focused window bind = $modkey, H, movefocus, l diff --git a/.config/waybar/config b/.config/waybar/config index 63f64e2..27b972c 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,16 +1,18 @@ // vi: ft=jsonc { - // "layer": "top", // Waybar at top layer + "layer": "top", // Waybar at top layer // "position": "bottom", // Waybar position (top|bottom|left|right) "height": 40, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width //"spacing": 4, // Gaps between modules (4px) // Choose the order of the modules "modules-left": [ + "wlr/workspaces", "sway/workspaces" //"sway/mode" ], "modules-center": [ + "wlr/window", "sway/window" ], "modules-right": [ @@ -38,7 +40,22 @@ "urgent": "", "focused": "", "default": "" - } + }, + "on-click": "activate" + }, + "wlr/workspaces": { + "max-width": 100, + "disable-scroll": false, + "all-outputs": false, + "format": "{name} {icon}", + "format-icons": { + "urgent": "", + "focused": "", + "default": "" + }, + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", + "on-click": "activate" }, "keyboard-state": { "numlock": true, @@ -53,6 +70,11 @@ "format": "{short} {variant}", "on-click": "swaymsg input type:keyboard xkb_switch_layout next" }, + "wlr/mode": { + "format": "<span style=\"italic\">{}</span>", + "max-length": 50, + "tooltip": true + }, "sway/mode": { "format": "<span style=\"italic\">{}</span>", "max-length": 50, diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 9580d35..08861e3 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -63,6 +63,11 @@ window#waybar.chromium { box-shadow: inset 0 -3px #ffffff; } +#workspaces button.active { + background-color: #64727D; + box-shadow: inset 0 -3px #ffffff; +} + #workspaces button.focused { background-color: #64727D; box-shadow: inset 0 -3px #ffffff; |