some updates

* hyprland: touchpad works correctly when switching workspaces, add
  screen shareing support, update windowrules
* dunst: just rewrote all config
* waybar: update clock, pulseaudio, and network modules, change color on
  activce workspace
This commit is contained in:
Smirnov Oleksandr 2023-11-08 15:12:13 +02:00
parent e87d92384c
commit e8159232c1
5 changed files with 169 additions and 90 deletions

View file

@ -1,46 +1,79 @@
# vim: ft=ini
[global] [global]
monitor = 0 font = Jetbrains 14
follow = mouse icon_theme = "Papirus-Dark"
geometry = "250x50-5+30" enable_recursive_icon_lookup = true
indicate_hidden = yes show_age_threshold = 60
shrink = no markup = full
transparency = 0 word_wrap = yes
notification_height = 0 ignore_newline = no
separator_height = 4 stack_duplicates = false
padding = 16 hide_duplicate_count = false
horizontal_padding = 16 shrink = no
frame_width = 2 idle_threshold = 120
frame_color = "#1F2324" follow = mouse
separator_color = frame
sort = yes mouse_left_click = close_all
idle_threshold = 120 mouse_right_click = do_action
font = Roboto 8
line_height = 4 sticky_history = yes
markup = full history_length = 10
format = "<b>%s</b>\n%b" line_height = 4
alignment = left separator_height = 4
show_age_threshold = 60 padding = 15
word_wrap = yes horizontal_padding = 15
ignore_newline = no separator_color = auto
stack_duplicates = false startup_notification = true
hide_duplicate_count = false
show_indicators = yes browser = x-www-browser -new-tab
icon_position = off
always_run_script = true icon_position = left
startup_notification = false max_icon_size = 48
force_xinerama = false
frame_width = 0
always_run_script = true
title = Dunst
class = Dunst
geometry = "250x50-5+30"
origin = top-right
offset = 9x14
width = (0,500)
# Display indicators for URLs (U) and actions (A).
show_indicators = no
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
format = "<b>%s</b>\n%b"
corner_radius = 8
sort = no
indicate_hidden = yes
# Possible values are "left", "center" and "right".
alignment = center
[urgency_low] [urgency_low]
background = "#16161e" frame_color = "#1a1b26"
foreground = "#c0caf5" background = "#1a1b26"
frame_color = "#c0caf5" foreground = "#c0caf5"
timeout = 10
[urgency_normal] [urgency_normal]
background = "#1a1b26" frame_color = "#15161e"
foreground = "#c0caf5" background = "#1a1b26"
frame_color = "#c0caf5" foreground = "#c0caf5"
timeout = 10
[urgency_critical] [urgency_critical]
background = "#292e42" frame_color = "#f7768e"
foreground = "#db4b4b" background = "#1a1b26"
frame_color = "#db4b4b" foreground = "#c0caf5"
timeout = 10

View file

@ -1,8 +1,4 @@
# vim: foldmethod=marker ts=2 sw=2 # vim: foldmethod=marker ts=2 sw=2
# https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Monitors/
monitor=,highres,auto,1 monitor=,highres,auto,1
## variables {{{ ## variables {{{
@ -16,6 +12,8 @@ exec-once = dunst &
exec-once = gsettings set org.gnome.desktop.interface font-name 'JetBrainsMono Nerd Font' & exec-once = gsettings set org.gnome.desktop.interface font-name 'JetBrainsMono Nerd Font' &
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = blueman-applet exec-once = blueman-applet
exec-once = ~/.config/hypr/xdg-portal.sh
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# }}} # }}}
## inputs {{{ ## inputs {{{
input { input {
@ -26,10 +24,13 @@ input {
kb_rules = kb_rules =
follow_mouse = 1 follow_mouse = 1
sensitivity = 0.4 # -1.0 - 1.0, 0 means no modification. sensitivity = 0.4 # -1.0 - 1.0, 0 means no modification
touchpad { touchpad {
middle_button_emulation = true middle_button_emulation = true
natural_scroll = false
scroll_factor = 0.4
clickfinger_behavior = 1
} }
} }
# }}} # }}}
@ -39,7 +40,7 @@ general {
gaps_out = 4 gaps_out = 4
border_size = 2 border_size = 2
col.active_border = rgba(7aa2f7aa) col.active_border = rgba(7aa2f7aa)
col.inactive_border = rgba(414868aa) col.inactive_border = rgba(292e42aa)
layout = master # dwindle layout = master # dwindle
} }
@ -97,25 +98,51 @@ misc {
## gestures {{{ ## gestures {{{
gestures { gestures {
workspace_swipe = true workspace_swipe = true
workspace_swipe_invert = false
workspace_swipe_create_new = false
} }
# }}} # }}}
## window rules {{{ ## window rules {{{
windowrule = workspace 1, title:(Postman) windowrulev2 = workspace 1, class:(Postman,org.keepassxc.KeePassXC)
windowrule = workspace 2, title:(Firefox) windowrulev2 = workspace 2, class:(firefox)
windowrule = workspace 3, title:(Rider) windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave)
windowrule = workspace 4, title:(Logseq|Anki) windowrulev2 = workspace 4, class:(Logseq|Anki|Morgen)
windowrule = workspace 5, title:(Telegram|Discord) windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal)
windowrule = workspace 7, title:(Spotify) windowrulev2 = workspace 7, class:(Spotify)
windowrulev2 = workspace 8, class:(org.prismlauncher.PrismLauncher)
windowrulev2 = workspace 9, class:(zoom)
windowrulev2 = float, class:(pavucontrol)
# screen sharing
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
# }}} # }}}
## keymaps {{{ ## keymaps {{{
bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images bind = Alt Ctrl, t, exec, $terminal
bind = $mod, Return, exec, $terminal bind = $mod, Return, exec, $terminal
bind = $mod, q, killactive
bind = $mod SHIFT, Escape, exit
bind = $mod, f, togglefloating,
bind = ,Print,exec,grim
bind = $mod ALT, r, exec, hyprctl reload
bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images
bind = $mod SHIFT, Escape, exec, ~/bin/wofi-power-menu
bind = $mod, q, killactive
bind = Alt, f4, killactive
bind = $mod, f, fullscreen
bind = $mod Ctrl, f, togglefloating
bind = , Print, exec, grim -g "$(slurp)"
## programs {{{
bind = $mod SHIFT, w, exec, firefox
bind = $mod SHIFT, f, exec, nautilus
bind = $mod SHIFT, d, exec, ~/.local/appimage/logseq.AppImage
bind = $mod SHIFT, a, exec, anki
bind = $mod SHIFT, s, exec, spotify
bind = $mod SHIFT, t, exec, telegram-desktop
bind = $mod SHIFT, c, exec, morgen
## }}}
## sound {{{ ## sound {{{
bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+ bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+
bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%- bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-
@ -128,10 +155,6 @@ windowrule = workspace 7, title:(Spotify)
bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5% bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5%
bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%- bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
## }}} ## }}}
## programs {{{
bind = $mod SHIFT, w, exec, firefox
bind = $mod SHIFT, f, exec, nautlius
## }}}
## layout spesific {{{ ## layout spesific {{{
bind = $mod, P, pseudo, # dwindle bind = $mod, P, pseudo, # dwindle
bind = $mod, J, togglesplit, # dwindle bind = $mod, J, togglesplit, # dwindle
@ -143,13 +166,18 @@ windowrule = workspace 7, title:(Spotify)
bind = $mod, l, movefocus, r bind = $mod, l, movefocus, r
# Scroll through existing workspaces with mainMod + scroll # Scroll through existing workspaces with mainMod + scroll
bind = $mod, mouse_down, workspace, e+1 bind = $mod, mouse_down, workspace, e-1
bind = $mod, mouse_up, workspace, e-1 bind = $mod, mouse_up, workspace, e+1
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mod, mouse:272, movewindow bindm = $mod, mouse:272, movewindow
bindm = $mod, mouse:273, resizewindow bindm = $mod, mouse:273, resizewindow
bind = $mod Alt, h, resizeactive, -20 0
bind = $mod Alt, l, resizeactive, 20 0
bind = $mod Alt, j, resizeactive, 0 20
bind = $mod Alt, k, resizeactive, 0 -20
## workspaces {{{ ## workspaces {{{
bind = $mod, 1, workspace, 1 bind = $mod, 1, workspace, 1
bind = $mod, 2, workspace, 2 bind = $mod, 2, workspace, 2

7
config/hypr/xdg-portal.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/env bash
sleep 1
killall -e xdg-desktop-portal-hyprland
killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-hyprland &
sleep 2
/usr/lib/xdg-desktop-portal &

View file

@ -30,7 +30,7 @@
"format": " {:%a, %d %b %H:%M}", "format": " {:%a, %d %b %H:%M}",
"tooltip": "true", "tooltip": "true",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": " {:%d/%m}" "on-click": "morgen"
}, },
"hyprland/workspaces": { "hyprland/workspaces": {
@ -66,6 +66,7 @@
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
"format-alt": "{icon} {time}", "format-alt": "{icon} {time}",
"format-icons": ["", "", "", "", ""], "format-icons": ["", "", "", "", ""],
"tooltip": false,
"states": { "states": {
"good": 95, "good": 95,
"warning": 30, "warning": 30,
@ -90,7 +91,8 @@
"format-disconnected": "󰤭", "format-disconnected": "󰤭",
"format-alt": "󰤨 {ifname}: {ipaddr}/{cidr}", "format-alt": "󰤨 {ifname}: {ipaddr}/{cidr}",
"tooltip-format": "{essid}", "tooltip-format": "{essid}",
"on-click-right": "nm-connection-editor" "on-click-right": "nm-connection-editor",
"tooltip": false
}, },
"tray": { "tray": {
@ -102,7 +104,8 @@
"format": "{icon} {percent}%", "format": "{icon} {percent}%",
"format-icons": ["", "", "", "", "", "", "", "", ""], "format-icons": ["", "", "", "", "", "", "", "", ""],
"on-scroll-up": "brightnessctl set +10%", "on-scroll-up": "brightnessctl set +10%",
"on-scroll-down": "brightnessctl set 10%-" "on-scroll-down": "brightnessctl set 10%-",
"tooltip": false
}, },
"pulseaudio": { "pulseaudio": {
@ -112,6 +115,8 @@
"default": ["󰕿", "󰖀", "󰕾"], "default": ["󰕿", "󰖀", "󰕾"],
"headphone": "" "headphone": ""
}, },
"on-click": "pavucontrol",
"tooltip": false,
"on-scroll-up": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+", "on-scroll-up": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+",
"on-scroll-down": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-" "on-scroll-down": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-"
}, },

View file

@ -36,9 +36,15 @@ window#waybar {
#cpu, #pulseaudio, #memory, #clock { color: @active-bg-color; } #cpu, #pulseaudio, #memory, #clock { color: @active-bg-color; }
#language { color: @red; } #language { color: @red; }
#workspaces button { color: @inactive-fg-color; } #workspaces button { color: @active-bg-color; }
#workspaces button.empty {
color: @inactive-fg-color;
background-color: transparent;
border-radius: 16px;
}
#workspaces button.active { #workspaces button.active {
color: @active-bg-color; color: @red;
background-color: transparent; background-color: transparent;
border-radius: 16px; border-radius: 16px;
} }