From d42c2fcb968206d5513cade8cfcdb43e93fd33c3 Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Sat, 13 Jul 2019 21:41:23 -0400 Subject: [PATCH] File explorer shortcut --- i3/desktop.conf | 6 ++++-- i3/shared.conf | 9 +++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/i3/desktop.conf b/i3/desktop.conf index 260fdf8..5dfaa39 100644 --- a/i3/desktop.conf +++ b/i3/desktop.conf @@ -11,13 +11,15 @@ workspace $ws9 output DVI-D-0 workspace $ws10 output HDMI-0 mode "$g13" { - bindsym 1 exec --no-startup-id g13d --config ~/.config/g13/overwatch.bind --logo ~/.config/g13/overwatch.lpbm &; mode "default" + bindsym 1 exec --no-startup-id cat ~/.config/g13/overwatch.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/overwatch.lpbm > /tmp/g13-0; mode "default" + bindsym 2 exec --no-startup-id cat ~/.config/g13/resolve.bind > /tmp/g13-0 && sleep .1 && cat ~/.config/g13/resolve.lpbm > /tmp/g13-0; mode "default" bindsym Escape mode "default" bindsym Return mode "default" } -set $g13 G13 Profile: [1] Overwatch +set $g13 G13 Profile: [1] Overwatch [2] Resolve bindsym $mod+F1 mode "$g13" +exec_always --no-startup-id g13d --config ~/.config/g13/resolve.bind --logo ~/.config/g13/resolve.lpbm & # Set caps lock key to super exec_always --no-startup-id setxkbmap -option 'caps:super' diff --git a/i3/shared.conf b/i3/shared.conf index 20b4dd1..8ab958c 100644 --- a/i3/shared.conf +++ b/i3/shared.conf @@ -101,13 +101,9 @@ bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+0 move container to workspace $ws10 # reload the configuration file -bindsym $mod+Shift+c reload +bindsym $mod+Shift+c exec "sh ~/.config/i3/i3wm-config-gen.sh"; reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -#bindsym $mod+Shift+r exec "sh ~/config/i3/i3wm-config-gen.sh && restart" bindsym $mod+Shift+r exec "sh ~/.config/i3/i3wm-config-gen.sh"; restart -#"~/.config/i3/i3wm-config-gen.sh" -#"touch ~/.config/i3/test.txt & cat test > ~/.config/i3/test.txt" -#"sh ~/.config/i3/i3wm-config-gen.sh & sleep 5 && i3-msg restart" # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" @@ -165,4 +161,5 @@ for_window [class="^.*"] border pixel 1 new_window 1pixel #new_window normal 0 px -bindsym $mod+Shift+s exec scrot -b -d 5 '%Y:%m:%d:%H:%M:%S.png' -e 'mv $f ~/Desktop/' \ No newline at end of file +bindsym $mod+Shift+s exec scrot -b -d 5 '%Y:%m:%d:%H:%M:%S.png' -e 'mv $f ~/Desktop/' +bindsym $mod+n exec "nautilus" \ No newline at end of file