From a1944bc79a2fbaed35b52ff0b47ea786c270d32e Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Wed, 19 May 2021 17:06:50 -0500 Subject: [PATCH] added i3 keybinding to disable screen sleep, changed location of mpd state file. --- i3/.config/i3/config | 6 +++++- mpd/.config/mpd/mpd.conf | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 5929317..36b4e49 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -143,7 +143,7 @@ font pango:DejaVu Sans Mono 8 bindsym $mod+Shift+0 move container to workspace $ws10 # reload the configuration file - bindsym $mod+Shift+c reload + bindsym $mod+Shift+n reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) @@ -182,6 +182,10 @@ font pango:DejaVu Sans Mono 8 bindsym $mod+x exec --no-startup-id "~/dotfiles/scripts/screen_off $lock_command_nof" bindsym $mod+shift+x exec --no-startup-id "$lock_command"; exec "systemctl suspend" + # disable screen going to sleep with mod+c, enable screen going to sleep with mod+shift+c + bindsym $mod+c exec "xset s off -dpms; notify-send 'screen blanking off'" + bindsym $mod+shift+c exec "xset +dpms; notify-send 'screen blanking on'" + #screenshot everything with mod+s, current window with mod+shift+s bindsym $mod+s exec --no-startup-id "maim ~/Pictures/$(date +%s).png" bindsym $mod+shift+s exec --no-startup-id "maim -i $(xdotool getactivewindow) ~/Pictures/$(date +%s).png" diff --git a/mpd/.config/mpd/mpd.conf b/mpd/.config/mpd/mpd.conf index f401d05..b1a6a01 100644 --- a/mpd/.config/mpd/mpd.conf +++ b/mpd/.config/mpd/mpd.conf @@ -1,7 +1,7 @@ music_directory "~/Music" playlist_directory "~/Music/.mpd/playlists" db_file "~/Music/.mpd/database" -state_file "~/Music/.mpd/state" +state_file "~/.mpd/state" log_file "~/.mpd/log" pid_file "~/.mpd/pid" sticker_file "~/.mpd/sticker.sql"