diff --git a/.config/directories b/.config/directories index ab756235..f4cb1212 100644 --- a/.config/directories +++ b/.config/directories @@ -3,7 +3,7 @@ cf ~/.config d ~/downloads gh ~/github h ~/ -l ~/.local/bin +lb ~/.local/bin mn /mnt psc ~/.local/bin/polybar_scripts pp ~/pictures diff --git a/.config/i3/config b/.config/i3/config index b19513ee..3012d54f 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -35,9 +35,7 @@ for_window [instance="dropdown_dropdowncalc"] resize set 800 300 for_window [instance="dropdown_tmuxdd"] border pixel 3 for_window [instance="dropdown_dropdowncalc"] border pixel 2 for_window [instance="dropdown_*"] move position center -for_window [class="Spotify"] move to workspace $ws10 for_window [class="discord"] move to workspace $ws10 -for_window [class="Slack"] move to workspace $ws10 for_window [class="Pulse"] move to workspace $ws9 # #---Basic Bindings---# # @@ -57,7 +55,7 @@ bindsym $mod+Ctrl+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown # #---Letter Key Bindings---# # # A bindsym $mod+a exec --no-startup-id ddspawn dropdowncalc -f mono:pixelsize=24 -bindsym $mod+shift +a exec $term -e alsamixer +bindsym $mod+shift+a exec $term -e alsamixer # B bindsym $mod+b exec --no-startup-id polybar_msg cmd toggle bindsym $mod+Shift+b floating toggle; sticky toggle; exec --no-startup-id hover left @@ -92,7 +90,7 @@ bindsym $mod+l focus right bindsym $mod+Shift+l move right 30 bindsym $mod+Ctrl+l move workspace to output right # M -bindsym $mod+m exec open_music_source +bindsym $mod+m exec dmenu_openmusic bindsym $mod+Shift+m exec --no-startup-id amixer sset Master toggle # N bindsym $mod+n exec nautilus @@ -152,10 +150,10 @@ bindsym $mod+Shift+slash exec --no-startup-id xkill bindsym $mod+backslash workspace back_and_forth # #---Volume Bindings---# # -bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+ && pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+ && pkill -RTMIN+10 i3blocks -bindsym $mod+minus exec --no-startup-id amixer sset Master 5%- && pkill -RTMIN+10 i3blocks -bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%- && pkill -RTMIN+10 i3blocks +bindsym $mod+plus exec --no-startup-id amixer sset Master 5%+ +bindsym $mod+Shift+plus exec --no-startup-id amixer sset Master 15%+ +bindsym $mod+minus exec --no-startup-id amixer sset Master 5%- +bindsym $mod+Shift+minus exec --no-startup-id amixer sset Master 15%- set $ws1 "1" set $ws2 "2" diff --git a/.local/bin/add_local_bin_to_path b/.local/bin/add_local_bin_to_path index a18d2351..5ccf7184 100755 --- a/.local/bin/add_local_bin_to_path +++ b/.local/bin/add_local_bin_to_path @@ -1,6 +1,6 @@ #!/bin/sh -export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" +. ~/.profile -notify-send "Added ~/.local/bin/ to $PATH" +notify-send "Added ~/.local/bin/ to \$PATH" diff --git a/.local/bin/dmenu_openmusic b/.local/bin/dmenu_openmusic index 0918baec..dccde07b 100755 --- a/.local/bin/dmenu_openmusic +++ b/.local/bin/dmenu_openmusic @@ -2,8 +2,10 @@ # Allow you to choose which music source you want to launch -chosen=$(printf "%s\\nGoogle Music\\Spotify| dmenu -i -p "Select music provider:") && -case "$chosen" in - "nGoogle Music") google-chrome-stable https://music.google.com ;; - "Spotify") spotify & ;; -esac \ No newline at end of file +music_service=$(printf "Google Music\nSpotify" | dmenu -i -p "Select music service: ") +case "$music_service" in + "Google Music") notify-send "Opened $music_service" && google-chrome-stable https://music.google.com 2>/dev/null & ;; + "Spotify") notify-send "Opened $music_service" && firefox https://open.spotify.com/browse/ 2>/dev/null & ;; +esac + + diff --git a/.local/bin/refbar b/.local/bin/refbar deleted file mode 100755 index 78b50188..00000000 --- a/.local/bin/refbar +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -# Refresh the dwmbar. -# Send SIGTRAP signal to dwmbar script, which will handle it with a trap. -pkill -SIGTRAP dwmbar