This commit is contained in:
wancat
2022-06-25 17:12:33 +08:00
parent f4c3c8e259
commit a63872cea6
2 changed files with 11 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 12
font pango:Taipei Sans TC Beta, Regular 12
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
@@ -28,14 +28,16 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec_always xinput --set-prop 'pointer:Razer Razer Basilisk X HyperSpeed' 165 0.5 0 0 0 0.5 0 0 0 1
exec_always xinput --set-prop 'pointer:Razer Razer Basilisk X HyperSpeed' 'libinput Accel Speed' -1
exec_always feh --randomize --bg-center ~/Nextcloud/Photos/Anime/風起/*
exec_always feh --randomize --bg-fill ~/Photos/Anime/風起/*
exec --no-startup-id protonmail-bridge --no-window
exec --no-startup-id nextcloud --background
exec --no-startup-id setxkbmap -option ctrl:nocaps
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet --sm-disable
bindsym --release Print exec --no-startup-id import ~/Pictures/Screenshot-$(date --iso-8601=seconds).png
bindsym --release $mod+Print exec --no-startup-id import ~/Pictures/Screenshot-$(date --iso-8601=seconds).png
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
@@ -48,16 +50,18 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+m exec i3-sensible-terminal -e 'ranger'
bindsym $mod+Return exec st
bindsym $mod+m exec Thunar
bindsym $mod+n exec exec st -e ranger
bindsym $mod+b exec brave-browser
bindsym $mod+p exec passmenu
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
# bindsym $mod+d exec --no-startup-id dmenu_run
bindsym $mod+d exec --no-startup-id rofi -show run
bindsym $mod+d exec --no-startup-id rofi -show drun -run-shell-command 'st -e zsh -ic "{cmd}"'
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a