mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
Compare commits
6 Commits
surface
...
ed9d50d68e
Author | SHA1 | Date | |
---|---|---|---|
ed9d50d68e
|
|||
89b9222b7c
|
|||
ee6b7333fb
|
|||
2ac1111b72
|
|||
83f8566faf
|
|||
59ac129a85
|
@ -137,7 +137,7 @@ bindsym $mod+Return exec i3-sensible-terminal
|
|||||||
bindsym $mod+Ctrl+Return exec i3-sensible-terminal -r floating-term
|
bindsym $mod+Ctrl+Return exec i3-sensible-terminal -r floating-term
|
||||||
bindsym $mod+Shift+Return exec i3-sensible-terminal -d "`xcwd`"
|
bindsym $mod+Shift+Return exec i3-sensible-terminal -d "`xcwd`"
|
||||||
bindsym $mod+Ctrl+Shift+Return exec i3-sensible-terminal -r floating-term -d "`xcwd`"
|
bindsym $mod+Ctrl+Shift+Return exec i3-sensible-terminal -r floating-term -d "`xcwd`"
|
||||||
bindsym $mod+l exec ~/.config/i3/lock.sh
|
bindsym $mod+l exec dm-tool switch-to-greeter
|
||||||
bindsym $mod+space exec "pkill rofi; rofi -show run -sidebar-mode -terminal i3-sensible-terminal -normal-window"
|
bindsym $mod+space exec "pkill rofi; rofi -show run -sidebar-mode -terminal i3-sensible-terminal -normal-window"
|
||||||
bindsym $mod+Shift+p exec rofi-pass
|
bindsym $mod+Shift+p exec rofi-pass
|
||||||
bindsym $mod+Shift+e exec rofi-emoji
|
bindsym $mod+Shift+e exec rofi-emoji
|
||||||
@ -150,11 +150,11 @@ bindsym $mod+r exec "bash -c 'pwgen -nc 32 1 | tee >(xargs noti
|
|||||||
bindsym $mod+g exec "LINK=$(gist -PRpc); notify-send -c transfer \\"<a href=\\\\"$LINK\\\\">$LINK</a>\\""
|
bindsym $mod+g exec "LINK=$(gist -PRpc); notify-send -c transfer \\"<a href=\\\\"$LINK\\\\">$LINK</a>\\""
|
||||||
|
|
||||||
# Media player controls
|
# Media player controls
|
||||||
bindsym XF86AudioPlay exec --no-startup-id mpc toggle
|
bindsym XF86AudioPlay exec --no-startup-id playerctl -a play-pause
|
||||||
bindsym XF86AudioPause exec --no-startup-id mpc pause
|
bindsym XF86AudioPause exec --no-startup-id playerctl -a pause
|
||||||
bindsym XF86AudioStop exec --no-startup-id mpc stop
|
bindsym XF86AudioStop exec --no-startup-id playerctl -a stop
|
||||||
bindsym XF86AudioNext exec --no-startup-id mpc next
|
bindsym XF86AudioNext exec --no-startup-id playerctl -a next
|
||||||
bindsym XF86AudioPrev exec --no-startup-id mpc previous
|
bindsym XF86AudioPrev exec --no-startup-id playerctl -a previous
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1000
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1000
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1000
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1000
|
||||||
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
|
||||||
@ -164,7 +164,8 @@ bindsym XF86MonBrightnessDown exec xbacklight -dec 5 && pkill -RTMIN+12 i3bloc
|
|||||||
# app launch shortcuts
|
# app launch shortcuts
|
||||||
exec --no-startup-id ~/.config/i3/disable-standby-fs.py
|
exec --no-startup-id ~/.config/i3/disable-standby-fs.py
|
||||||
exec --no-startup-id feh --no-fehbg --no-xinerama --bg-fill ~/pictures/lakesidesunrise.jpg
|
exec --no-startup-id feh --no-fehbg --no-xinerama --bg-fill ~/pictures/lakesidesunrise.jpg
|
||||||
exec --no-startup-id xautolock -time 5 -locker 'dm-tool lock' -nocloseout -nocloseerr
|
exec --no-startup-id xautolock -time 5 -locker 'dm-tool switch-to-greeter' -nocloseout -nocloseerr
|
||||||
|
exec --no-startup-id xss-lock dm-tool switch-to-greeter
|
||||||
|
|
||||||
# startup programs
|
# startup programs
|
||||||
exec --no-startup-id nextcloud
|
exec --no-startup-id nextcloud
|
||||||
@ -174,7 +175,7 @@ exec --no-startup-id xbindkeys
|
|||||||
exec --no-startup-id solaar
|
exec --no-startup-id solaar
|
||||||
exec --no-startup-id pullover
|
exec --no-startup-id pullover
|
||||||
exec --no-startup-id mailnag
|
exec --no-startup-id mailnag
|
||||||
exec --no-startup-id compton -b --config ~/.config/compton.conf
|
exec --no-startup-id compton -b
|
||||||
exec --no-startup-id chromium --no-startup-window
|
exec --no-startup-id chromium --no-startup-window
|
||||||
exec --no-startup-id thunderbird
|
exec --no-startup-id thunderbird
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
option=$(echo "lock|logout|sleep|hibernate|power off|reboot|windows" | rofi -sep "|" -dmenu -i -p "" -auto-select -hide-scrollbar -monitor 0 -width 8 -lines 7 -location 3 -tokenize false -matching normal | xargs)
|
option=$(echo "lock|logout|sleep|hibernate|power off|reboot|windows" | rofi -sep "|" -dmenu -i -p "" -auto-select -hide-scrollbar -monitor 0 -width 10 -lines 7 -location 3 -tokenize false -matching normal | xargs)
|
||||||
|
|
||||||
case $option in
|
case $option in
|
||||||
lock) ./lock.sh;;
|
lock) dm-tool switch-to-greeter;;
|
||||||
logout) i3-msg exit;;
|
logout) i3-msg exit;;
|
||||||
sleep) systemctl suspend;;
|
sleep) systemctl suspend;;
|
||||||
hibernate) systemctl hibernate;;
|
hibernate) systemctl hibernate;;
|
||||||
|
@ -115,7 +115,7 @@ label-visible-underline = ${self.label-focused-underline}
|
|||||||
|
|
||||||
; urgent = Workspace with urgency hint set
|
; urgent = Workspace with urgency hint set
|
||||||
label-urgent = ${self.label-focused}
|
label-urgent = ${self.label-focused}
|
||||||
label-urgent-foreground = ${colours.warning}
|
label-urgent-foreground = ${colours.critical}
|
||||||
label-urgent-padding = ${self.label-focused-padding}
|
label-urgent-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Lock X session using i3lock
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=%i
|
|
||||||
Environment=DISPLAY=:0
|
|
||||||
ExecStart=sh -c '~/.config/i3/lock.sh'
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=sleep.target
|
|
12
.config/systemd/user/sleep-lock-lightdm.service
Normal file
12
.config/systemd/user/sleep-lock-lightdm.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Lock X LightDM session before sleeping
|
||||||
|
Before=sleep.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/dm-tool switch-to-greeter
|
||||||
|
# Ensure enough time for the session to lock before sleeping
|
||||||
|
ExecStartPost=/usr/bin/sleep 1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sleep.target
|
@ -0,0 +1 @@
|
|||||||
|
../sleep-lock-lightdm.service
|
3
.profile
3
.profile
@ -76,6 +76,7 @@ fi
|
|||||||
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && exists dbus-launch; then
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && exists dbus-launch; then
|
||||||
eval $(dbus-launch --sh-syntax --exit-with-session)
|
eval $(dbus-launch --sh-syntax --exit-with-session)
|
||||||
dbus-update-activation-environment --systemd \
|
dbus-update-activation-environment --systemd \
|
||||||
DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
|
DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY \
|
||||||
|
XDG_SEAT_PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
2
aliases
2
aliases
@ -266,7 +266,7 @@ alias zfs='sudo zfs'
|
|||||||
alias zpool='sudo zpool'
|
alias zpool='sudo zpool'
|
||||||
alias z=zfs
|
alias z=zfs
|
||||||
alias zp=zpool
|
alias zp=zpool
|
||||||
zl() { (set -o pipefail; command zfs list $@ | grep -Ev 'docker/[0-9a-f]{64}'); return $?; }
|
zl() { (set -o pipefail; command zfs list $@ | grep -Ev 'docker/[0-9a-f]{64}' | column -t -R 2,3,4); return $?; }
|
||||||
_zl() { _zfs "list $@"; }
|
_zl() { _zfs "list $@"; }
|
||||||
|
|
||||||
# General Aliases
|
# General Aliases
|
||||||
|
Reference in New Issue
Block a user