mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 16:18:33 +01:00
more hsotname checking and small fixes
This commit is contained in:
@@ -16,17 +16,24 @@ hc keyunbind --all
|
||||
#variables
|
||||
Mod=Mod4 # Use the super key as the main modifier
|
||||
|
||||
######### MACHINE SPECIFIC SETUP #########
|
||||
### Atlantis PC-specific setup ###
|
||||
if [[ $HOST == "atlantispc" ]]; then
|
||||
hc detect_monitors
|
||||
/usr/bin/xrandr --output DVI-I-2 --right-of DVI-I-1
|
||||
xautolock -time 15 -locker /home/ik15ydit/.config/i3lock/piclock.sh &
|
||||
fi
|
||||
### Atlantislaptop specific setup ###
|
||||
if [[ $HOST == "atlantislaptop" ]]; then
|
||||
hc keybind XF86MonBrightnessUp spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) + 5)"'
|
||||
hc keybind XF86MonBrightnessDown spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) - 5)"'
|
||||
fi
|
||||
|
||||
######### GENERAL SETUP #########
|
||||
# keybindings
|
||||
#client handling
|
||||
hc keybind $Mod-Shift-q quit
|
||||
if [[ $HOST =~ atlantis.* ]]; then
|
||||
if [[ $HOST =~ atlantis* ]]; then
|
||||
hc keybind $Mod-Shift-p spawn /sbin/poweroff
|
||||
fi
|
||||
hc keybind $Mod-Shift-r reload
|
||||
@@ -37,7 +44,7 @@ hc keybind $Mod-q close
|
||||
hc keybind $Mod-Return spawn urxvt
|
||||
hc keybind $Mod-Shift-Return spawn xterm /bin/bash
|
||||
hc keybind $Mod-i spawn chromium
|
||||
if [[ $HOST =~ atlantis.* ]]; then
|
||||
if [[ $HOST =~ atlantis* ]]; then
|
||||
hc keybind $Mod-l spawn i3lock -i ~/.config/i3lock/bg.png -t
|
||||
fi
|
||||
hc keybind $Mod-p spawn pavucontrol
|
||||
@@ -129,11 +136,6 @@ hc keybind $Mod-Shift-u spawn /bin/sh -c 'pactl set-sink-volume @DEFAULT_SINK@ -
|
||||
hc keybind XF86AudioMute spawn /bin/sh -c 'pactl set-sink-mute @DEFAULT_SINK@ toggle' #toggle mute
|
||||
hc keybind $Mod-m spawn /bin/sh -c 'pactl set-sink-mute @DEFAULT_SINK@ toggle'
|
||||
|
||||
#brightness
|
||||
hc keybind XF86MonBrightnessUp spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) + 5)"'
|
||||
hc keybind XF86MonBrightnessDown spawn /bin/bash -c 'tee /sys/class/backlight/intel_backlight/brightness <<< "$(expr $(cat /sys/class/backlight/intel_backlight/brightness) - 5)"'
|
||||
|
||||
|
||||
# theme
|
||||
hc attr theme.tiling.reset 1
|
||||
hc attr theme.floating.reset 1
|
||||
|
||||
Reference in New Issue
Block a user