all repos

dotfiles @ e8159232c1777d34cf4c51e73b113861070090ce

i use rach linux btw
5 files changed, 168 insertions(+), 89 deletions(-)
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
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2023-11-08 15:16:38 +0200
Parent: e87d923
M config/dunst/dunstrc
···
                
                1
                +# vim: ft=ini

              
                
                2
                +

              
                1
                3
                 [global]

              
                2
                
                -    monitor = 0

              
                3
                
                -    follow = mouse

              
                4
                
                -    geometry = "250x50-5+30"

              
                5
                
                -    indicate_hidden = yes

              
                6
                
                -    shrink = no

              
                7
                
                -    transparency = 0

              
                8
                
                -    notification_height = 0

              
                9
                
                -    separator_height = 4

              
                10
                
                -    padding = 16

              
                11
                
                -    horizontal_padding = 16

              
                12
                
                -    frame_width = 2

              
                13
                
                -    frame_color = "#1F2324"

              
                14
                
                -    separator_color = frame

              
                15
                
                -    sort = yes

              
                16
                
                -    idle_threshold = 120

              
                17
                
                -    font = Roboto 8

              
                18
                
                -    line_height = 4

              
                19
                
                -    markup = full

              
                20
                
                -    format = "<b>%s</b>\n%b"

              
                21
                
                -    alignment = left

              
                22
                
                -    show_age_threshold = 60

              
                23
                
                -    word_wrap = yes

              
                24
                
                -    ignore_newline = no

              
                25
                
                -    stack_duplicates = false

              
                26
                
                -    hide_duplicate_count = false

              
                27
                
                -    show_indicators = yes

              
                28
                
                -    icon_position = off

              
                29
                
                -    always_run_script = true

              
                30
                
                -    startup_notification = false

              
                31
                
                -    force_xinerama = false

              
                
                4
                +font = Jetbrains 14

              
                
                5
                +icon_theme = "Papirus-Dark"

              
                
                6
                +enable_recursive_icon_lookup = true

              
                
                7
                +show_age_threshold = 60

              
                
                8
                +markup = full

              
                
                9
                +word_wrap = yes

              
                
                10
                +ignore_newline = no

              
                
                11
                +stack_duplicates = false

              
                
                12
                +hide_duplicate_count = false

              
                
                13
                +shrink = no

              
                
                14
                +idle_threshold = 120

              
                
                15
                +follow = mouse

              
                
                16
                +

              
                
                17
                +mouse_left_click = close_all

              
                
                18
                +mouse_right_click = do_action

              
                
                19
                +

              
                
                20
                +sticky_history = yes

              
                
                21
                +history_length = 10

              
                
                22
                +line_height = 4

              
                
                23
                +separator_height = 4

              
                
                24
                +padding = 15

              
                
                25
                +horizontal_padding = 15

              
                
                26
                +separator_color = auto

              
                
                27
                +startup_notification = true

              
                
                28
                +

              
                
                29
                +browser = x-www-browser -new-tab

              
                
                30
                +

              
                
                31
                +icon_position = left

              
                
                32
                +max_icon_size = 48

              
                
                33
                +

              
                
                34
                +frame_width = 0

              
                
                35
                +

              
                
                36
                +always_run_script = true

              
                
                37
                +title = Dunst

              
                
                38
                +class = Dunst

              
                
                39
                +

              
                
                40
                +geometry = "250x50-5+30"

              
                
                41
                +origin = top-right

              
                
                42
                +offset = 9x14

              
                
                43
                +width = (0,500)

              
                
                44
                +

              
                
                45
                +# Display indicators for URLs (U) and actions (A).

              
                
                46
                +show_indicators = no

              
                
                47
                +

              
                
                48
                +# %a  appname

              
                
                49
                +# %s  summary

              
                
                50
                +# %b  body

              
                
                51
                +# %i  iconname (including its path)

              
                
                52
                +# %I  iconname (without its path)

              
                
                53
                +# %p  progress value if set ([  0%] to [100%]) or nothing

              
                
                54
                +format = "<b>%s</b>\n%b"

              
                
                55
                +corner_radius = 8

              
                
                56
                +sort = no

              
                
                57
                +indicate_hidden = yes

              
                
                58
                +

              
                
                59
                +# Possible values are "left", "center" and "right".

              
                
                60
                +alignment = center

              
                
                61
                +

              
                32
                62
                 

              
                33
                63
                 [urgency_low]

              
                34
                
                -    background = "#16161e"

              
                35
                
                -    foreground = "#c0caf5"

              
                36
                
                -    frame_color = "#c0caf5"

              
                
                64
                +frame_color = "#1a1b26"

              
                
                65
                +background = "#1a1b26"

              
                
                66
                +foreground = "#c0caf5"

              
                
                67
                +timeout = 10

              
                37
                68
                 

              
                38
                69
                 [urgency_normal]

              
                39
                
                -    background = "#1a1b26"

              
                40
                
                -    foreground = "#c0caf5"

              
                41
                
                -    frame_color = "#c0caf5"

              
                
                70
                +frame_color = "#15161e"

              
                
                71
                +background = "#1a1b26"

              
                
                72
                +foreground = "#c0caf5"

              
                
                73
                +timeout = 10

              
                42
                74
                 

              
                43
                75
                 [urgency_critical]

              
                44
                
                -    background = "#292e42"

              
                45
                
                -    foreground = "#db4b4b"

              
                46
                
                -    frame_color = "#db4b4b"

              
                
                76
                +frame_color = "#f7768e"

              
                
                77
                +background = "#1a1b26"

              
                
                78
                +foreground = "#c0caf5"

              
                
                79
                +timeout = 10

              
M config/hypr/hyprland.conf
···
                1
                1
                 # vim: foldmethod=marker ts=2 sw=2

              
                2
                
                -

              
                3
                
                -# https://wiki.hyprland.org/Configuring/Variables/

              
                4
                
                -# https://wiki.hyprland.org/Configuring/Monitors/

              
                5
                
                -

              
                6
                2
                 monitor=,highres,auto,1

              
                7
                3
                 

              
                8
                4
                 ## variables {{{

              ···
                16
                12
                 exec-once = gsettings set org.gnome.desktop.interface font-name 'JetBrainsMono Nerd Font' &

              
                17
                13
                 exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

              
                18
                14
                 exec-once = blueman-applet

              
                
                15
                +exec-once = ~/.config/hypr/xdg-portal.sh

              
                
                16
                +exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

              
                19
                17
                 # }}}

              
                20
                18
                 ## inputs {{{

              
                21
                19
                 input {

              ···
                26
                24
                     kb_rules =

              
                27
                25
                 

              
                28
                26
                     follow_mouse = 1

              
                29
                
                -    sensitivity = 0.4 # -1.0 - 1.0, 0 means no modification.

              
                
                27
                +    sensitivity = 0.4 # -1.0 - 1.0, 0 means no modification

              
                30
                28
                 

              
                31
                29
                     touchpad {

              
                32
                
                -      middle_button_emulation = true

              
                
                30
                +        middle_button_emulation = true

              
                
                31
                +        natural_scroll = false

              
                
                32
                +        scroll_factor = 0.4

              
                
                33
                +        clickfinger_behavior = 1

              
                33
                34
                     }

              
                34
                35
                 }

              
                35
                36
                 # }}}

              ···
                39
                40
                     gaps_out = 4

              
                40
                41
                     border_size = 2

              
                41
                42
                     col.active_border = rgba(7aa2f7aa)

              
                42
                
                -    col.inactive_border = rgba(414868aa)

              
                
                43
                +    col.inactive_border = rgba(292e42aa)

              
                43
                44
                 

              
                44
                45
                     layout = master # dwindle

              
                45
                46
                 }

              ···
                96
                97
                 # }}}

              
                97
                98
                 ## gestures {{{

              
                98
                99
                 gestures {

              
                99
                
                -  workspace_swipe = true

              
                
                100
                +    workspace_swipe = true

              
                
                101
                +    workspace_swipe_invert = false

              
                
                102
                +    workspace_swipe_create_new = false

              
                100
                103
                 }

              
                101
                104
                 # }}}

              
                102
                105
                 ## window rules {{{

              
                103
                
                -windowrule = workspace 1, title:(Postman)

              
                104
                
                -windowrule = workspace 2, title:(Firefox)

              
                105
                
                -windowrule = workspace 3, title:(Rider)

              
                106
                
                -windowrule = workspace 4, title:(Logseq|Anki)

              
                107
                
                -windowrule = workspace 5, title:(Telegram|Discord)

              
                108
                
                -windowrule = workspace 7, title:(Spotify)

              
                
                106
                +windowrulev2 = workspace 1, class:(Postman,org.keepassxc.KeePassXC)

              
                
                107
                +windowrulev2 = workspace 2, class:(firefox)

              
                
                108
                +windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave)

              
                
                109
                +windowrulev2 = workspace 4, class:(Logseq|Anki|Morgen)

              
                
                110
                +windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal)

              
                
                111
                +windowrulev2 = workspace 7, class:(Spotify)

              
                
                112
                +windowrulev2 = workspace 8, class:(org.prismlauncher.PrismLauncher)

              
                
                113
                +windowrulev2 = workspace 9, class:(zoom)

              
                
                114
                +

              
                
                115
                +windowrulev2 = float, class:(pavucontrol)

              
                
                116
                +

              
                
                117
                +# screen sharing

              
                
                118
                +windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$

              
                
                119
                +windowrulev2 = noanim,class:^(xwaylandvideobridge)$

              
                
                120
                +windowrulev2 = nofocus,class:^(xwaylandvideobridge)$

              
                
                121
                +windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$

              
                109
                122
                 # }}}

              
                110
                123
                 ## keymaps {{{

              
                
                124
                +  bind = Alt Ctrl, t, exec, $terminal

              
                
                125
                +  bind = $mod, Return, exec, $terminal

              
                
                126
                +

              
                111
                127
                   bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images

              
                112
                
                -  bind = $mod, Return, exec, $terminal

              
                
                128
                +  bind = $mod SHIFT, Escape, exec, ~/bin/wofi-power-menu

              
                
                129
                +

              
                113
                130
                   bind = $mod, q, killactive

              
                114
                
                -  bind = $mod SHIFT, Escape, exit

              
                115
                
                -  bind = $mod, f, togglefloating,

              
                116
                
                -  bind = ,Print,exec,grim

              
                117
                
                -  bind = $mod ALT, r, exec, hyprctl reload

              
                
                131
                +  bind = Alt, f4, killactive

              
                118
                132
                 

              
                
                133
                +  bind = $mod, f, fullscreen

              
                
                134
                +  bind = $mod Ctrl, f, togglefloating

              
                
                135
                +  bind = , Print, exec, grim -g "$(slurp)"

              
                
                136
                +

              
                
                137
                +  ## programs {{{

              
                
                138
                +  bind = $mod SHIFT, w, exec, firefox

              
                
                139
                +  bind = $mod SHIFT, f, exec, nautilus

              
                
                140
                +  bind = $mod SHIFT, d, exec, ~/.local/appimage/logseq.AppImage

              
                
                141
                +  bind = $mod SHIFT, a, exec, anki

              
                
                142
                +  bind = $mod SHIFT, s, exec, spotify

              
                
                143
                +  bind = $mod SHIFT, t, exec, telegram-desktop

              
                
                144
                +  bind = $mod SHIFT, c, exec, morgen

              
                
                145
                +  ## }}}

              
                119
                146
                   ## sound {{{

              
                120
                147
                   bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+

              
                121
                148
                   bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-

              ···
                128
                155
                   bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5%

              
                129
                156
                   bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%-

              
                130
                157
                   ## }}}

              
                131
                
                -  ## programs {{{

              
                132
                
                -  bind = $mod SHIFT, w, exec, firefox

              
                133
                
                -  bind = $mod SHIFT, f, exec, nautlius

              
                134
                
                -  ## }}}

              
                135
                158
                   ## layout spesific {{{

              
                136
                159
                   bind = $mod, P, pseudo, # dwindle

              
                137
                160
                   bind = $mod, J, togglesplit, # dwindle

              ···
                143
                166
                   bind = $mod, l, movefocus, r

              
                144
                167
                 

              
                145
                168
                   # Scroll through existing workspaces with mainMod + scroll

              
                146
                
                -  bind = $mod, mouse_down, workspace, e+1

              
                147
                
                -  bind = $mod, mouse_up, workspace, e-1

              
                
                169
                +  bind = $mod, mouse_down, workspace, e-1

              
                
                170
                +  bind = $mod, mouse_up, workspace, e+1

              
                148
                171
                 

              
                149
                172
                   # Move/resize windows with mainMod + LMB/RMB and dragging

              
                150
                173
                   bindm = $mod, mouse:272, movewindow

              
                151
                174
                   bindm = $mod, mouse:273, resizewindow

              
                152
                175
                 

              
                153
                
                -  ## workspaces {{{

              
                154
                
                -  bind = $mod, 1, workspace, 1

              
                155
                
                -  bind = $mod, 2, workspace, 2

              
                156
                
                -  bind = $mod, 3, workspace, 3

              
                157
                
                -  bind = $mod, 4, workspace, 4

              
                158
                
                -  bind = $mod, 5, workspace, 5

              
                159
                
                -  bind = $mod, 6, workspace, 6

              
                160
                
                -  bind = $mod, 7, workspace, 7

              
                161
                
                -  bind = $mod, 8, workspace, 8

              
                162
                
                -  bind = $mod, 9, workspace, 9

              
                
                176
                +  bind = $mod Alt, h, resizeactive, -20 0

              
                
                177
                +  bind = $mod Alt, l, resizeactive, 20 0

              
                
                178
                +  bind = $mod Alt, j, resizeactive, 0 20

              
                
                179
                +  bind = $mod Alt, k, resizeactive, 0 -20

              
                
                180
                +

              
                
                181
                +    ## workspaces {{{

              
                
                182
                +    bind = $mod, 1, workspace, 1

              
                
                183
                +    bind = $mod, 2, workspace, 2

              
                
                184
                +    bind = $mod, 3, workspace, 3

              
                
                185
                +    bind = $mod, 4, workspace, 4

              
                
                186
                +    bind = $mod, 5, workspace, 5

              
                
                187
                +    bind = $mod, 6, workspace, 6

              
                
                188
                +    bind = $mod, 7, workspace, 7

              
                
                189
                +    bind = $mod, 8, workspace, 8

              
                
                190
                +    bind = $mod, 9, workspace, 9

              
                163
                191
                 

              
                164
                
                -  bind = $mod SHIFT, 1, movetoworkspace, 1

              
                165
                
                -  bind = $mod SHIFT, 2, movetoworkspace, 2

              
                166
                
                -  bind = $mod SHIFT, 3, movetoworkspace, 3

              
                167
                
                -  bind = $mod SHIFT, 4, movetoworkspace, 4

              
                168
                
                -  bind = $mod SHIFT, 5, movetoworkspace, 5

              
                169
                
                -  bind = $mod SHIFT, 6, movetoworkspace, 6

              
                170
                
                -  bind = $mod SHIFT, 7, movetoworkspace, 7

              
                171
                
                -  bind = $mod SHIFT, 8, movetoworkspace, 8

              
                172
                
                -  bind = $mod SHIFT, 9, movetoworkspace, 9

              
                173
                
                -  # }}}

              
                
                192
                +    bind = $mod SHIFT, 1, movetoworkspace, 1

              
                
                193
                +    bind = $mod SHIFT, 2, movetoworkspace, 2

              
                
                194
                +    bind = $mod SHIFT, 3, movetoworkspace, 3

              
                
                195
                +    bind = $mod SHIFT, 4, movetoworkspace, 4

              
                
                196
                +    bind = $mod SHIFT, 5, movetoworkspace, 5

              
                
                197
                +    bind = $mod SHIFT, 6, movetoworkspace, 6

              
                
                198
                +    bind = $mod SHIFT, 7, movetoworkspace, 7

              
                
                199
                +    bind = $mod SHIFT, 8, movetoworkspace, 8

              
                
                200
                +    bind = $mod SHIFT, 9, movetoworkspace, 9

              
                
                201
                +    # }}}

              
                174
                202
                 # }}}

              
                175
                203
                 # }}}

              
A config/hypr/xdg-portal.sh
···
                
                1
                +#!/bin/env bash

              
                
                2
                +sleep 1

              
                
                3
                +killall -e xdg-desktop-portal-hyprland

              
                
                4
                +killall xdg-desktop-portal

              
                
                5
                +/usr/lib/xdg-desktop-portal-hyprland &

              
                
                6
                +sleep 2

              
                
                7
                +/usr/lib/xdg-desktop-portal &

              
M config/waybar/config
···
                30
                30
                         "format": "  {:%a, %d %b %H:%M}",

              
                31
                31
                         "tooltip": "true",

              
                32
                32
                         "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",

              
                33
                
                -        "format-alt": "  {:%d/%m}"

              
                
                33
                +        "on-click": "morgen"

              
                34
                34
                     },

              
                35
                35
                 

              
                36
                36
                     "hyprland/workspaces": {

              ···
                66
                66
                         "format-plugged": "{capacity}%  ",

              
                67
                67
                         "format-alt": "{icon}  {time}",

              
                68
                68
                         "format-icons": ["", "", "", "", ""],

              
                
                69
                +        "tooltip": false,

              
                69
                70
                         "states": {

              
                70
                71
                             "good": 95,

              
                71
                72
                             "warning": 30,

              ···
                90
                91
                         "format-disconnected": "󰤭",

              
                91
                92
                         "format-alt": "󰤨 {ifname}: {ipaddr}/{cidr}",

              
                92
                93
                         "tooltip-format": "{essid}",

              
                93
                
                -        "on-click-right": "nm-connection-editor"

              
                
                94
                +        "on-click-right": "nm-connection-editor",

              
                
                95
                +        "tooltip": false

              
                94
                96
                     },

              
                95
                97
                 

              
                96
                98
                     "tray": {

              ···
                102
                104
                         "format": "{icon}  {percent}%",

              
                103
                105
                         "format-icons": ["", "", "", "", "", "", "", "", ""],

              
                104
                106
                         "on-scroll-up": "brightnessctl set +10%",

              
                105
                
                -        "on-scroll-down": "brightnessctl set 10%-"

              
                
                107
                +        "on-scroll-down": "brightnessctl set 10%-",

              
                
                108
                +        "tooltip": false

              
                106
                109
                     },

              
                107
                110
                 

              
                108
                111
                     "pulseaudio": {

              ···
                112
                115
                             "default": ["󰕿", "󰖀", "󰕾"],

              
                113
                116
                             "headphone": ""

              
                114
                117
                         },

              
                
                118
                +        "on-click": "pavucontrol",

              
                
                119
                +        "tooltip": false,

              
                115
                120
                         "on-scroll-up": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+",

              
                116
                121
                         "on-scroll-down": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-"

              
                117
                122
                     },

              
M config/waybar/style.css
···
                36
                36
                 #cpu, #pulseaudio, #memory, #clock { color: @active-bg-color; }

              
                37
                37
                 #language { color: @red; }

              
                38
                38
                 

              
                39
                
                -#workspaces button { color: @inactive-fg-color; }

              
                
                39
                +#workspaces button { color: @active-bg-color; }

              
                
                40
                +#workspaces button.empty {

              
                
                41
                +  color: @inactive-fg-color;

              
                
                42
                +  background-color: transparent;

              
                
                43
                +  border-radius: 16px;

              
                
                44
                +}

              
                
                45
                +

              
                40
                46
                 #workspaces button.active {

              
                41
                
                -  color: @active-bg-color;

              
                
                47
                +  color: @red;

              
                42
                48
                   background-color: transparent;

              
                43
                49
                   border-radius: 16px;

              
                44
                50
                 }