diff --git a/bin/xsettingsd-setup b/bin/xsettingsd-setup index 2c0ea2b..622b4fd 100755 --- a/bin/xsettingsd-setup +++ b/bin/xsettingsd-setup @@ -29,6 +29,7 @@ dpi=${dpis%% *} dpi=${dpi:-96} echo "using ${dpi}dpi" >&2 +echo Xft.dpi: $dpi | xrdb -merge xrandr --dpi $dpi # Build xsettingsd @@ -39,6 +40,3 @@ xrandr --dpi $dpi echo Gdk/WindowScalingFactor $(( $dpi/96 )) echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) )) } > ~/.xsettingsd - -# Also use xrdb for very old stuff (you know, LibreOffice) -echo Xft.dpi: $dpi | xrdb -merge diff --git a/config b/config index 688d1b8..a59428d 100644 --- a/config +++ b/config @@ -9,13 +9,20 @@ set $term vbeterm font pango:Terminus 9 -# Style +# Style and colors default_border pixel 3 default_floating_border pixel 3 +# class border backgr. text indicator child_border +client.focused #ffaf00 #cc5c00 #ffffff #ffcf00 #cc5c00 +client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a +client.unfocused #333333 #222222 #888888 #292d2e #222222 +client.urgent #2f343a #d00000 #ffffff #d00000 #d00000 +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c +client.background #ffffff # Use pactl to adjust volume in PulseAudio. -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle diff --git a/dotfiles/dunstrc b/dotfiles/dunstrc new file mode 100644 index 0000000..654425d --- /dev/null +++ b/dotfiles/dunstrc @@ -0,0 +1,89 @@ +[global] + # Display on first monitor + monitor = 0 + follow = none + + # Appearance + geometry = "400x7-30+30" + indicate_hidden = yes + shrink = no + notification_height = 0 + separator_height = 0 + padding = 8 + horizontal_padding = 8 + text_icon_padding = 8 + frame_width = 0 + transparency = 5 + font = DejaVu Sans 10 + line_height = 0 + + # Put urgent notifications on top + sort = yes + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + idle_threshold = 60 + + # The format of the message. Possible variables are: + # %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 + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b" + markup = full + alignment = left + vertical_alignment = center + word_wrap = no + ellipsize = end + ignore_newline = no + stack_duplicates = true + hide_duplicate_count = true + show_indicators = no + + # Progress bar + progress_bar = false + + # Icons + icon_position = left + min_icon_size = 32 + max_icon_size = 32 + icon_path = /usr/share/icons/gnome/256x256/status/:/usr/share/icons/gnome/256x256/devices/ + + # History + sticky_history = yes + history_length = 20 + + # Misc + dmenu = /usr/bin/dmenu -p dunst: + browser = /usr/bin/xdg-open + always_run_script = true + title = Dunst + class = Dunst + startup_notification = false + verbosity = mesg + corner_radius = 0 + ignore_dbusclose = false + + # Mouse + mouse_left_click = close_current + mouse_middle_click = none + mouse_right_click = none + +[urgency_low] + background = "#222222" + foreground = "#888888" + timeout = 10 + +[urgency_normal] + background = "#222222" + foreground = "#ffffff" + timeout = 10 + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + timeout = 0 diff --git a/dotfiles/gtkrc-3.0 b/dotfiles/gtk3.css similarity index 100% rename from dotfiles/gtkrc-3.0 rename to dotfiles/gtk3.css diff --git a/dotfiles/systemd/dunst.service.d/override.conf b/dotfiles/systemd/dunst.service.d/override.conf new file mode 100644 index 0000000..8382228 --- /dev/null +++ b/dotfiles/systemd/dunst.service.d/override.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=%h/.local/bin/dunst diff --git a/dotfiles/systemd/picom.service b/dotfiles/systemd/picom.service index d980334..1df9fac 100644 --- a/dotfiles/systemd/picom.service +++ b/dotfiles/systemd/picom.service @@ -6,7 +6,6 @@ PartOf=graphical-session.target ExecStart=/usr/bin/picom --backend glx \ --xrender-sync-fence \ --vsync \ - --opacity-rule 100:fullscreen \ - --opacity-rule 85:!fullscreen \ - --opacity-rule 100:focused + --inactive-opacity 0.85 \ + --opacity-rule 100:fullscreen Restart=on-failure diff --git a/dotfiles/systemd/xsession.target b/dotfiles/systemd/xsession.target index c49c677..dc80b2f 100644 --- a/dotfiles/systemd/xsession.target +++ b/dotfiles/systemd/xsession.target @@ -15,3 +15,4 @@ Wants=xss-lock.service Wants=tmux.service Wants=ssh-agent.service Wants=pulseaudio.service +Wants=dunst.socket diff --git a/dotfiles/xsession b/dotfiles/xsession index 8090fc9..588dfd9 100644 --- a/dotfiles/xsession +++ b/dotfiles/xsession @@ -26,11 +26,13 @@ while read source target; do done <