Improve some configs

This commit is contained in:
Tobias Reisinger 2024-06-13 18:29:58 +02:00
parent 0ed1633be6
commit 0edf379835
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
8 changed files with 46 additions and 11 deletions

View file

@ -2,6 +2,8 @@
export AUTOSTART_DISPLAY="Hyprland"
export KDE_CONNECT_DEVICE="Fairphone3"
export MONITOR_PRIMARY="DP-1"
export MONITOR_SECONDARY="HDMI-A-1"

View file

@ -26,19 +26,26 @@ bindl = , XF86AudioPause, exec, playerctl pause
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPrev, exec, playerctl prev
### hjkl Keys
# Move focus with mainMod + hjkl keys
bind = $main_mod, h, movefocus, l
bind = $main_mod, j, movefocus, d
bind = $main_mod, k, movefocus, u
bind = $main_mod, l, movefocus, r
# Move window with mainMod + hjkl keys
bind = $main_mod SHIFT, h, movewindow, l
bind = $main_mod SHIFT, j, movewindow, d
bind = $main_mod SHIFT, k, movewindow, u
bind = $main_mod SHIFT, l, movewindow, r
# Move focus between windows
bind = $main_mod, c, layoutmsg, swapwithmaster master
# Preselect split window with mainMod + hjkl keys
bind = $main_mod CTRL, h, layoutmsg, preselect l
bind = $main_mod CTRL, j, layoutmsg, preselect d
bind = $main_mod CTRL, k, layoutmsg, preselect u
bind = $main_mod CTRL, l, layoutmsg, preselect r
# Switch workspaces with mainMod + [0-9]

View file

@ -1,12 +1,18 @@
# dracula/hyprland
general {
col.active_border = rgb(44475a) rgb(bd93f9) 90deg
col.inactive_border = rgba(44475aaa)
# non-gradient alternative
#col.active_border = rgb(bd93f9)
#col.active_border = rgb(44475a) rgb(bd93f9) 90deg
#col.inactive_border = rgba(44475aaa)
col.nogroup_border = rgba(282a36dd)
col.nogroup_border_active = rgb(bd93f9) rgb(44475a) 90deg
no_border_on_floating = false
border_size = 2
# non-gradient alternative
col.active_border = rgb(bd93f9)
col.inactive_border = rgba(44475aaa)
#col.group_border = rgba(282a36dd)
#col.group_border_active = rgb(bd93f9)
# darker alternative
#col.active_border = rgb(44475a) # or rgb(6272a4)
#col.inactive_border = rgb(282a36)
@ -16,6 +22,7 @@ general {
}
decoration {
col.shadow = rgba(1E202966)
# suggested shadow setting
#drop_shadow = yes
#shadow_range = 60
@ -23,6 +30,7 @@ decoration {
#shadow_render_power = 3
#shadow_scale = 0.97
}
group {
groupbar {
col.active = rgb(bd93f9) rgb(44475a) 90deg

View file

@ -10,9 +10,9 @@ windowrulev2 = workspace $ws_web, class:(firefox)
windowrulev2 = workspace $ws_focus, class:^(jetbrains-)
windowrulev2 = workspace $ws_media silent, class:(Chromium)
windowrulev2 = workspace $ws_media silent, class:(FreeTube)
windowrulev2 = workspace $ws_media silent, class:(qutebrowser-kiosk)
windowrulev2 = workspace $ws_media, class:([cC]hromium)
windowrulev2 = workspace $ws_media, class:(FreeTube)
windowrulev2 = workspace $ws_media, class:(qutebrowser-kiosk)
windowrulev2 = workspace $ws_chat silent, class:(discord)
windowrulev2 = workspace $ws_chat silent, class:(Element)

View file

@ -8,6 +8,7 @@ def init(c):
c.bind(',ef', 'spawn firefox {url}')
c.bind(',eF', 'hint links spawn firefox {hint-url}')
c.bind(',es', 'spawn xdg-open steam://openurl/{url}')
c.bind(',ep', 'spawn kdeconnect-cli -n Fairphone3 --share {url}')
c.bind(',g', 'open {url:scheme}://github1s.com{url:path}{url:query}')

View file

@ -11,6 +11,12 @@ collection=$(get_collections | $DMENU -p "Collection: ")
url=$QUTE_URL
name=$(echo "$QUTE_TITLE" | $DMENU -p "Title: ")
if [ -z "$url" ] || [ -z "$name" ] || [ -z "$collection" ]
then
echo "message-error \"Failed to save link: Missing required fields\"" >> "$QUTE_FIFO"
exit 0
fi
payload=$(jq -n \
--arg u "$url" \
--arg n "$name" \