mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-08-08 12:15:23 +02:00
More initial configuration
Notably add Dunst for notifications.
This commit is contained in:
parent
d85a504c53
commit
f306d92a0d
8 changed files with 109 additions and 10 deletions
|
@ -29,6 +29,7 @@ dpi=${dpis%% *}
|
||||||
dpi=${dpi:-96}
|
dpi=${dpi:-96}
|
||||||
|
|
||||||
echo "using ${dpi}dpi" >&2
|
echo "using ${dpi}dpi" >&2
|
||||||
|
echo Xft.dpi: $dpi | xrdb -merge
|
||||||
xrandr --dpi $dpi
|
xrandr --dpi $dpi
|
||||||
|
|
||||||
# Build xsettingsd
|
# Build xsettingsd
|
||||||
|
@ -39,6 +40,3 @@ xrandr --dpi $dpi
|
||||||
echo Gdk/WindowScalingFactor $(( $dpi/96 ))
|
echo Gdk/WindowScalingFactor $(( $dpi/96 ))
|
||||||
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
|
echo Gdk/UnscaledDPI $(( $dpi*1024/($dpi/96) ))
|
||||||
} > ~/.xsettingsd
|
} > ~/.xsettingsd
|
||||||
|
|
||||||
# Also use xrdb for very old stuff (you know, LibreOffice)
|
|
||||||
echo Xft.dpi: $dpi | xrdb -merge
|
|
||||||
|
|
13
config
13
config
|
@ -9,13 +9,20 @@ set $term vbeterm
|
||||||
|
|
||||||
font pango:Terminus 9
|
font pango:Terminus 9
|
||||||
|
|
||||||
# Style
|
# Style and colors
|
||||||
default_border pixel 3
|
default_border pixel 3
|
||||||
default_floating_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.
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
bindsym XF86AudioRaiseVolume 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@ -10%
|
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 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
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||||
|
|
||||||
|
|
89
dotfiles/dunstrc
Normal file
89
dotfiles/dunstrc
Normal file
|
@ -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 = "<b>%s</b>\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
|
3
dotfiles/systemd/dunst.service.d/override.conf
Normal file
3
dotfiles/systemd/dunst.service.d/override.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Service]
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=%h/.local/bin/dunst
|
|
@ -6,7 +6,6 @@ PartOf=graphical-session.target
|
||||||
ExecStart=/usr/bin/picom --backend glx \
|
ExecStart=/usr/bin/picom --backend glx \
|
||||||
--xrender-sync-fence \
|
--xrender-sync-fence \
|
||||||
--vsync \
|
--vsync \
|
||||||
--opacity-rule 100:fullscreen \
|
--inactive-opacity 0.85 \
|
||||||
--opacity-rule 85:!fullscreen \
|
--opacity-rule 100:fullscreen
|
||||||
--opacity-rule 100:focused
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
|
@ -15,3 +15,4 @@ Wants=xss-lock.service
|
||||||
Wants=tmux.service
|
Wants=tmux.service
|
||||||
Wants=ssh-agent.service
|
Wants=ssh-agent.service
|
||||||
Wants=pulseaudio.service
|
Wants=pulseaudio.service
|
||||||
|
Wants=dunst.socket
|
||||||
|
|
|
@ -26,11 +26,13 @@ while read source target; do
|
||||||
done <<EOF
|
done <<EOF
|
||||||
Xresources .Xresources
|
Xresources .Xresources
|
||||||
gtkrc-2.0 .gtkrc-2.0
|
gtkrc-2.0 .gtkrc-2.0
|
||||||
gtkrc-3.0 .config/gtk-3.0/settings.ini
|
gtk3.css .config/gtk-3.0/gtk.css
|
||||||
qt5ct.conf .config/qt5ct/qt5ct.conf
|
qt5ct.conf .config/qt5ct/qt5ct.conf
|
||||||
systemd .config/systemd/user
|
systemd .config/systemd/user
|
||||||
|
dunstrc .config/dunst/dunstrc
|
||||||
firefox.js .mozilla/firefox/*/user.js
|
firefox.js .mozilla/firefox/*/user.js
|
||||||
EOF
|
EOF
|
||||||
|
rm -f ~/.config/gtk-3.0/settings.ini
|
||||||
|
|
||||||
# Services are started with systemd
|
# Services are started with systemd
|
||||||
systemctl --user import-environment
|
systemctl --user import-environment
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue