未开启dwm
As many other dwm users do, I customized my .xinitrc file and the dwm status bar in to display some useful information. Here is my configuration:
与其他许多dwm用户一样,我自定义了.xinitrc文件和dwm状态栏以显示一些有用的信息。 这是我的配置:
.xinitrc (.xinitrc)
This is what my .xinitrc looks like:
这是我的.xinitrc的样子:
# set keyboard layout to Swiss German
setxkbmap ch
# set keyboard layout to Swiss German
setxkbmap ch
# Load .Xresources file
xrdb -merge ~/.Xresources
# Load .Xresources file
xrdb -merge ~/.Xresources
# Start xbindkeys
xbindkeys # Start xbindkeys
xbindkeys &
&
# Set some defaults
# Set some defaults
export export BROWSERBROWSER =chromium = chromium &
&
export export EDITOREDITOR =vim = vim &
xdg-mime default evince.desktop application/pdf &
xdg-mime default evince.desktop application/pdf &
&
# Loop
# Loop
while while true
true
do
do
# Set root title
sh .xsetroot.sh
# Set root title
sh .xsetroot.sh
# Check battery level
# Check battery level
BATTBATT == $( acpi -b $( acpi -b | sed | sed 's/.*[charging|unknown], ([0-9]*)%.*/1/gi' 's/.*[charging|unknown], ([0-9]*)%.*/1/gi' )
)