From e23ba45888a0d28afd1e4eddb2443479b8b5afdf Mon Sep 17 00:00:00 2001 From: Dante <150515748+xsghetti@users.noreply.github.com> Date: Mon, 15 Apr 2024 01:39:56 -0400 Subject: [PATCH] hyprland updates --- .config/hypr/animations.conf | 6 +++--- .config/hypr/hyprland.conf | 24 +++++++++------------ .config/hypr/hyprlock.conf | 14 +++++++++++- .config/hypr/keybindings.conf | 2 +- .config/hypr/scripts/time_in_binary.py | 30 ++++++++++++++++++++++++++ .config/hypr/windowrule.conf | 8 +++++-- .config/kitty/kitty.conf | 2 +- 7 files changed, 64 insertions(+), 22 deletions(-) create mode 100644 .config/hypr/scripts/time_in_binary.py diff --git a/.config/hypr/animations.conf b/.config/hypr/animations.conf index a5599163..59861564 100644 --- a/.config/hypr/animations.conf +++ b/.config/hypr/animations.conf @@ -1,8 +1,8 @@ general { # See https://wiki.hyprland.org/Configuring/Variables/ for more - gaps_in = 8 - gaps_out = 20 + gaps_in = 4 + gaps_out = 10 border_size = 2 col.active_border = $foreground col.inactive_border = $color4 color6 $color7 $color1 30deg @@ -66,4 +66,4 @@ animations { animation = windowsIn, 1, 6, winIn, slide # animation = border, 1, 1, liner # animation = borderangle, 1, 100, liner, loop -} \ No newline at end of file +} diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index fd35f806..ea1c33fa 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -10,15 +10,15 @@ source = ~/.cache/wal/colors-hyprland.conf # See https://wiki.hyprland.org/Configuring/Monitors/ #monitor = ,preferred,auto,1 -# Desktop -monitor = DP-1, 1920x1080@100, 0x540, 1 +#Desktop +monitor = DP-1, 1920x1080@100, 0x0, 1 monitor = HDMI-A-1, 1920x1080@100, auto, 1 -monitor = HDMI-A-1, transform, 3 -workspace = 1, persistent:true,monitor:eDP-1,default:true -workspace = 2, persistent:true,monitor:eDP-1 -workspace = 3, persistent:true,monitor:eDP-1 -workspace = 4, persistent:true,monitor:eDP-1 -workspace = 5, persistent:true,monitor:eDP-1 +# monitor = HDMI-A-1, transform, 3 +workspace = 1, persistent:true,monitor:DP-1,default:true +workspace = 2, persistent:true,monitor:DP-1 +workspace = 3, persistent:true,monitor:DP-1 +workspace = 4, persistent:true,monitor:DP-1 +workspace = 5, persistent:true,monitor:DP-1 workspace = 6, persistent:true,monitor:HDMI-A-1 workspace = 7, persistent:true,monitor:HDMI-A-1 workspace = 8, persistent:true,monitor:HDMI-A-1 @@ -26,12 +26,8 @@ workspace = 9, persistent:true,monitor:HDMI-A-1 workspace = 0, persistent:true,monitor:HDMI-A-1 # Laptop -monitor = eDP-1, 1920x1080@144, auto, 1 -workspace = 1, persistent:true,monitor:eDP-1,default:true -workspace = 2, persistent:true,monitor:eDP-1 -workspace = 3, persistent:true,monitor:eDP-1 -workspace = 4, persistent:true,monitor:eDP-1 -workspace = 5, persistent:true,monitor:eDP-1 +# monitor = eDP-1, 1920x1080@144, auto, 1 +# workspace = eDP-1,1 # See https://wiki.hyprland.org/Configuring/Keywords/ for more diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf index a9e4e9f2..877404b4 100644 --- a/.config/hypr/hyprlock.conf +++ b/.config/hypr/hyprlock.conf @@ -68,4 +68,16 @@ label { position = 0, 30 halign = center valign = bottom -} \ No newline at end of file +} + +} +label { + monitor = HDMI-A-1 + text = cmd[update:1000] ~/.config/hypr/scripts/time_in_binary.py 1 + color = rgba(238, 206, 207,0.8) + font_size = 25 + font_family = Noto Sans + position = 110, 70 + halign = center + valign = center +} diff --git a/.config/hypr/keybindings.conf b/.config/hypr/keybindings.conf index afa6031d..8d964162 100644 --- a/.config/hypr/keybindings.conf +++ b/.config/hypr/keybindings.conf @@ -118,7 +118,7 @@ bind = $mainMod, K, exec, $scrPath/keyboardswitch.sh # change keyboard layout bind = ALT,tab, exec, ags -t overview # Hyprexo Keybinding -# bind = ALT, grave,hyprexpo:expo, toggle on +bind = ALT, grave,hyprexpo:expo, toggle on # Special Keys bind = , xf86monbrightnessup, exec, brightnessctl set 10%+ diff --git a/.config/hypr/scripts/time_in_binary.py b/.config/hypr/scripts/time_in_binary.py new file mode 100644 index 00000000..86f66c26 --- /dev/null +++ b/.config/hypr/scripts/time_in_binary.py @@ -0,0 +1,30 @@ +#!/bin/python3 + +import datetime +import sys + + +def hours_in_binary(hours): + hours = bin(hours)[2:] + if len(hours) < 4: + hours = "0" * (4 - len(hours)) + hours + return hours.replace("1", "●").replace("0", "○") + + +def minutes_in_binary(minutes): + minutes = bin(minutes)[2:] + if len(minutes) < 6: + minutes = "0" * (6 - len(minutes)) + minutes + return minutes.replace("1", "●").replace("0", "○") + + +def seconds_in_binary(seconds): + return minutes_in_binary(seconds) + + +t = datetime.datetime.now() +fun = [hours_in_binary, minutes_in_binary, seconds_in_binary] +time = [t.hour, t.minute, t.second] +if __name__ == "__main__": + args = int(sys.argv[1]) + print(fun[args](time[args])) diff --git a/.config/hypr/windowrule.conf b/.config/hypr/windowrule.conf index b24a859d..35aef775 100644 --- a/.config/hypr/windowrule.conf +++ b/.config/hypr/windowrule.conf @@ -10,8 +10,8 @@ windowrulev2= opacity 0.80 0.80,class:^(waypaper)$ windowrulev2= opacity 0.80 0.80,class:^(dolphin)$ windowrulev2= opacity 0.80 0.80,class:^(discord)$ windowrulev2= opacity 0.80 0.80,class:^(lutris)$ -windowrulev2= opacity 1.00 1.00,class:^(firefox)$ windowrulev2= opacity 0.80 0.80,class:^(steam)$ +windowrulev2= opacity 0.80 0.80,class:^(kitty)$ windowrulev2 = float,class:^(nwg-look)$ windowrulev2 = float,class:^(org.kde.ark)$ windowrulev2 = float,class:^(eog)$ #Imageviewer-Gtk @@ -27,4 +27,8 @@ windowrulev2 = minsize 1 1, title:^()$,class:^(steam)$ layerrule = blur, rofi layerrule = animation popin,rofi -layerrule = ignorezero, rofi \ No newline at end of file +layerrule = ignorezero, rofi +layerrule = blur, swaync-control-center +layerrule = blur, swaync-notification-window +layerrule = ignorezero, swaync-control-center +layerrule = ignorezero, swaync-notification-window diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index a61a6120..08ff0674 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -4,7 +4,7 @@ italic_font auto bold_italic_font auto window_padding_width 25 -background_opacity 0.3 +background_opacity 1.0 hide_window_decorations yes confirm_os_window_close 0 include ~/.cache/wal/colors-kitty.conf