diff --git a/sheets/dd b/sheets/dd index 9a5633a..5caa198 100644 --- a/sheets/dd +++ b/sheets/dd @@ -6,20 +6,20 @@ dd if=/dev/urandom of=/tmp/test.txt count=2 bs=512 dd if=/dev/zero of=/dev/null bs=4KB & export dd_pid=`pgrep '^dd'` while [[ -d /proc/$dd_pid ]]; do - kill -USR1 $dd_pid && sleep 1 - clear + kill -USR1 $dd_pid && sleep 1 + clear done # Watch the progress of dd(1) with pv(1) and dialog(1), both of which can be # installed with the following command: apt-get install pv dialog ( - pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror + pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror ) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0 # Watch the progress of dd(1) with pv(1) and zenity(1), both of which can be # installed with the following command: apt-get install pv zenity ( - pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror + pv -n /dev/zero | dd of=/dev/null bs=128M conv=notrunc,noerror ) 2>&1 | zenity --title 'Running dd command (cloning), please wait...' --progress # Watch the progress of dd(1) with the built-in `progress` functionality, - diff --git a/sheets/i3 b/sheets/i3 index 31fb50c..f3b435a 100644 --- a/sheets/i3 +++ b/sheets/i3 @@ -101,17 +101,19 @@ bindsym $mod+4 workspace $ws4 bindsym $mod+Shift+R exec custom-script-in-path.sh --flag1 --flag2 bindcode 172 exec playerctl play-pause -# Always execute code when i3 starts: +# Execute code when i3 starts, but only once per session: exec --no-startup-id ~/.config/polybar/launch.sh +# Always execute code when i3 starts, even if it's simply restarted: +exec_always --no-startup-id ~/.config/polybar/launch.sh # One can make special modes (much like resize mode) set $gamingMode "gaming_mode" bindsym $mod+g mode $gamingMode mode $gamingMode { - # Insert declarations for this mode - # Useful when normal keybindings fight with keybindings of your games - # Don't forget to add option to return from this mode! - bindsym $mod+Escape mode default + # Insert declarations for this mode. Useful when normal keybindings fight + # with keybindings of your games. Don't forget to add option to return from + # this mode! + bindsym $mod+Escape mode default } # Move workspace between multiple monitors