hyprland updates

This commit is contained in:
Dante 2024-04-15 01:39:56 -04:00 committed by GitHub
parent a379eebea0
commit e23ba45888
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 64 additions and 22 deletions

View file

@ -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
}
}

View file

@ -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

View file

@ -68,4 +68,16 @@ label {
position = 0, 30
halign = center
valign = bottom
}
}
}
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
}

View file

@ -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%+

View file

@ -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]))

View file

@ -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
layerrule = ignorezero, rofi
layerrule = blur, swaync-control-center
layerrule = blur, swaync-notification-window
layerrule = ignorezero, swaync-control-center
layerrule = ignorezero, swaync-notification-window

View file

@ -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