mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
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:
parent
e87d92384c
commit
e8159232c1
5 changed files with 169 additions and 90 deletions
|
|
@ -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
|
|
||||||
shrink = no
|
|
||||||
transparency = 0
|
|
||||||
notification_height = 0
|
|
||||||
separator_height = 4
|
|
||||||
padding = 16
|
|
||||||
horizontal_padding = 16
|
|
||||||
frame_width = 2
|
|
||||||
frame_color = "#1F2324"
|
|
||||||
separator_color = frame
|
|
||||||
sort = yes
|
|
||||||
idle_threshold = 120
|
|
||||||
font = Roboto 8
|
|
||||||
line_height = 4
|
|
||||||
markup = full
|
|
||||||
format = "<b>%s</b>\n%b"
|
|
||||||
alignment = left
|
|
||||||
show_age_threshold = 60
|
show_age_threshold = 60
|
||||||
|
markup = full
|
||||||
word_wrap = yes
|
word_wrap = yes
|
||||||
ignore_newline = no
|
ignore_newline = no
|
||||||
stack_duplicates = false
|
stack_duplicates = false
|
||||||
hide_duplicate_count = false
|
hide_duplicate_count = false
|
||||||
show_indicators = yes
|
shrink = no
|
||||||
icon_position = off
|
idle_threshold = 120
|
||||||
|
follow = mouse
|
||||||
|
|
||||||
|
mouse_left_click = close_all
|
||||||
|
mouse_right_click = do_action
|
||||||
|
|
||||||
|
sticky_history = yes
|
||||||
|
history_length = 10
|
||||||
|
line_height = 4
|
||||||
|
separator_height = 4
|
||||||
|
padding = 15
|
||||||
|
horizontal_padding = 15
|
||||||
|
separator_color = auto
|
||||||
|
startup_notification = true
|
||||||
|
|
||||||
|
browser = x-www-browser -new-tab
|
||||||
|
|
||||||
|
icon_position = left
|
||||||
|
max_icon_size = 48
|
||||||
|
|
||||||
|
frame_width = 0
|
||||||
|
|
||||||
always_run_script = true
|
always_run_script = true
|
||||||
startup_notification = false
|
title = Dunst
|
||||||
force_xinerama = false
|
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"
|
|
||||||
frame_color = "#c0caf5"
|
|
||||||
|
|
||||||
[urgency_normal]
|
|
||||||
background = "#1a1b26"
|
background = "#1a1b26"
|
||||||
foreground = "#c0caf5"
|
foreground = "#c0caf5"
|
||||||
frame_color = "#c0caf5"
|
timeout = 10
|
||||||
|
|
||||||
|
[urgency_normal]
|
||||||
|
frame_color = "#15161e"
|
||||||
|
background = "#1a1b26"
|
||||||
|
foreground = "#c0caf5"
|
||||||
|
timeout = 10
|
||||||
|
|
||||||
[urgency_critical]
|
[urgency_critical]
|
||||||
background = "#292e42"
|
frame_color = "#f7768e"
|
||||||
foreground = "#db4b4b"
|
background = "#1a1b26"
|
||||||
frame_color = "#db4b4b"
|
foreground = "#c0caf5"
|
||||||
|
timeout = 10
|
||||||
|
|
|
||||||
|
|
@ -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
7
config/hypr/xdg-portal.sh
Executable 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 &
|
||||||
|
|
@ -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%-"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue