From 9844ec7e3a3d464445df55bf341aff0672111169 Mon Sep 17 00:00:00 2001 From: Elias Renman Date: Thu, 30 Nov 2023 14:56:35 +0100 Subject: [PATCH] fix: ricing --- hypr/hyprland.conf | 6 ++---- hypr/keymap.conf | 16 +++++++++++++++- hypr/rice.conf | 16 +++++++--------- swaylock/config | 27 +++++++++++++++++++++++++++ swaylock/qt5ct/qt5ct.conf | 28 ++++++++++++++++++++++++++++ waybar/config | 2 +- wlogout/style.css | 2 +- 7 files changed, 81 insertions(+), 16 deletions(-) create mode 100644 swaylock/config create mode 100644 swaylock/qt5ct/qt5ct.conf diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index e3b3076..b3d5890 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -11,6 +11,7 @@ exec-once = hyprpaper # See https://wiki.hyprland.org/Configuring/Monitors/ # monitor=,preferred,auto,auto +monitor=,addreserved,5,15,15,15 # See https://wiki.hyprland.org/Configuring/Keywords/ for more @@ -50,6 +51,7 @@ master { gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = true + workspace_swipe_invert = false } # Example per-device config @@ -65,7 +67,3 @@ device:epic-mouse-v1 { # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more -# Laptop lid switch -# bindl=,switch:Lid Switch,exec,swaylock -bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 3000x2000@60,0x0,auto" -bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" diff --git a/hypr/keymap.conf b/hypr/keymap.conf index 42aa99f..0a36914 100644 --- a/hypr/keymap.conf +++ b/hypr/keymap.conf @@ -12,6 +12,7 @@ bind = $mainMod, V, togglefloating, bind = $mainMod, SPACE, exec, wofi --show drun bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle +bind = $mainMod, L, exec, swaylock # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l @@ -65,4 +66,17 @@ binde=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind=, XF86AudioPlay, exec, playerctl play-pause bind=, XF86AudioPause, exec, playerctl play-pause bind=, XF86AudioNext, exec, playerctl next -bind=, XF86AudioPrev, exec, playerctl previous \ No newline at end of file +bind=, XF86AudioPrev, exec, playerctl previous + +# +# Hardware button mapping +# For example powerbutton +# + +# Laptop lid switch +# bindl=,switch:Lid Switch,exec,swaylock +bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, 3000x2000@60,0x0,auto" +bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable" +# Screen brightness +bind=,XF86MonBrightnessDown,exec,brightnessctl set 5%- +bind=,XF86MonBrightnessUp,exec,brightnessctl set +5% diff --git a/hypr/rice.conf b/hypr/rice.conf index fcddf18..1c34f97 100644 --- a/hypr/rice.conf +++ b/hypr/rice.conf @@ -4,7 +4,7 @@ # general { gaps_in=10 - gaps_out=15 + gaps_out=0 border_size=3 col.inactive_border=rgba(f7768eff) rgba(73dacaff) 45deg col.active_border=rgba(73dacaff) rgba(f7768eff) 45deg @@ -24,14 +24,14 @@ decoration { # # Round corners # - rounding = 6 + rounding = 3 multisample_edges = true # # Opacity # - active_opacity = 1.0 - inactive_opacity = 0.95 + active_opacity = 0.98 + inactive_opacity = 0.65 # # Blur @@ -65,14 +65,14 @@ animations { # bezier = overshot, 0.05, 0.5, 0.1, 1.05 bezier = smoothOut, 0.36, 0, 0.66, -0.56 - bezier = smoothIn, 0.25, 0.8, 0.5, 1 + bezier = smoothIn, 0.25, 0.8, 0.5, 0.5 animation = windows, 1, 5, overshot, slide animation = windowsOut, 1, 4, smoothOut, slide animation = windowsMove, 1, 4, default animation = border, 1, 10, default - animation = fade, 1, 10, smoothIn - animation = fadeDim, 1, 10, smoothIn + animation = fade, 1, 2, smoothIn + animation = fadeDim, 1, 2, smoothIn animation = workspaces, 1, 6, default } @@ -123,5 +123,3 @@ windowrulev2 = workspace 3, class:^(discord)$ windowrulev2 = workspace 3, class:^(Slack)$ windowrulev2 = workspace special, class:^(thunar)$ windowrulev2 = workspace special, class:^(YouTube Music)$ -# fullscreen -windowrule = fullscreen, wlogout \ No newline at end of file diff --git a/swaylock/config b/swaylock/config new file mode 100644 index 0000000..84085eb --- /dev/null +++ b/swaylock/config @@ -0,0 +1,27 @@ +indicator-caps-lock +datestr=%A + +scaling=fill +font=JetBrainsMono +font-size=20 +indicator-radius=115 +line-color=#3b4252 +text-color=#d8dee9 +inside-color=#2e344098 +inside-ver-color=#5e81ac +line-ver-color=#5e81ac +ring-ver-color=#5e81ac98 +ring-color=#4c566a +key-hl-color=#5e81ac +separator-color=#4c566a +layout-text-color=#eceff4 +line-wrong-color=#d08770 + +screenshots +clock +indicator +indicator-thickness=7 +effect-blur=7x5 +effect-vignette=0.5:0.5 +grace=2 +fade-in=0.2 \ No newline at end of file diff --git a/swaylock/qt5ct/qt5ct.conf b/swaylock/qt5ct/qt5ct.conf new file mode 100644 index 0000000..b32291b --- /dev/null +++ b/swaylock/qt5ct/qt5ct.conf @@ -0,0 +1,28 @@ +[Appearance] +color_scheme_path=/usr/share/qt5ct/colors/airy.conf +custom_palette=false +icon_theme=Papirus +standard_dialogs=default +style=kvantum-dark + +[Fonts] +fixed=@Variant(\0\0\0@\0\0\0\x12\0\x43\0\x61\0n\0t\0\x61\0r\0\x65\0l\0l@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) +general=@Variant(\0\0\0@\0\0\0\x12\0\x43\0\x61\0n\0t\0\x61\0r\0\x65\0l\0l@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) + +[Interface] +activate_item_on_single_click=1 +buttonbox_layout=0 +cursor_flash_time=1000 +dialog_buttons_have_icons=1 +double_click_interval=400 +gui_effects=@Invalid() +keyboard_scheme=2 +menus_have_icons=true +show_shortcuts_in_context_menus=true +stylesheets=@Invalid() +toolbutton_style=4 +underline_shortcut=1 +wheel_scroll_lines=3 + +[SettingsWindow] +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\"\0\0\v:\0\0\x4\x1c\0\0\a\x80\0\0\0\"\0\0\xe\xff\0\0\x4\x37\0\0\0\0\x2\0\0\0\a\x80\0\0\a\x80\0\0\0\"\0\0\v:\0\0\x4\x1c) diff --git a/waybar/config b/waybar/config index 8102637..d4f2f82 100644 --- a/waybar/config +++ b/waybar/config @@ -5,7 +5,7 @@ "margin": 5, // If height property would be not present, it'd be calculated dynamically - "height": 30, + "height": 34, "modules-left": [ "hyprland/workspaces", diff --git a/wlogout/style.css b/wlogout/style.css index 19bf9b6..41c20a0 100644 --- a/wlogout/style.css +++ b/wlogout/style.css @@ -22,7 +22,7 @@ button:hover { } button:focus { - background-color: #3d59a1; + background-color: #5e81ac; color: #18182a; text-shadow: none; }