diff --git a/.config/i3/config b/.config/i3/config index 56663bd..0895bb4 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -36,7 +36,8 @@ bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec rofi -show run +bindsym $mod+d exec rofi -modi drun -show drun +bindsym $mod+Tab exec rofi -modi window -show window # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. @@ -69,7 +70,7 @@ bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h -# split in vertical orientation +# split i bindsym $mod+v split v # enter fullscreen mode for the focused container @@ -136,6 +137,8 @@ bindsym $mod+b workspace back_and_forth bindsym $mod+comma move workspace to ouput left bindsym $mod+period move workspace to ouput right +# Screenshot +bindsym Print exec gnome-screenshot # Next | Prev worksapce bindsym $mod+Next workspace next @@ -177,8 +180,9 @@ exec --no-startup-id $HOME/bin/startconky.sh # Redshift exec --no-startup-id redshift || redshift -l 48.15:17.10 -# Always float Nemo -for_window [class="Nemo"] floating enable +# Float Nemo +bindsym $mod+Shift+n exec nemo --class floatingNemo +for_window [class="^floatingNemo$"] floating enable # Launch Nemo bindsym $mod+n exec nemo diff --git a/.config/polybar/config b/.config/polybar/config index 973bc97..f6436a0 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -49,7 +49,7 @@ font-2 = Weather Icons:size=10;1 modules-left = i3 modules-center = datetime openweathermap -modules-right = updates pulseaudio-tail wlan eth xkeyboard battery powermenu +modules-right = system-usb-udev updates pulseaudio-tail wlan eth xkeyboard battery powermenu tray-detached = false tray-position = left @@ -192,18 +192,25 @@ interval = 300 click-left = gsimplecal +[module/system-usb-udev] +type = custom/script +exec = ~/bin/system-usb-udev.sh +tail = true +click-left = ~/bin/system-usb-udev.sh --mount +click-right = ~/bin/system-usb-udev.sh --unmount + [module/pulseaudio-tail] type = custom/script -exec = ~/bin/pulseaudio-tail.sh +exec = ~/bin/pulseaudio-tail.sh 2> /dev/null tail = true -click-right = ~/bin/pulseaudio-tail.sh --show -click-left = ~/bin/pulseaudio-tail.sh --mute -scroll-up = ~/bin/pulseaudio-tail.sh --up -scroll-down = ~/bin/pulseaudio-tail.sh --down +click-right = ~/bin/pulseaudio-tail.sh --show 2> /dev/null +click-left = ~/bin/pulseaudio-tail.sh --mute 2> /dev/null +scroll-up = ~/bin/pulseaudio-tail.sh --up 2> /dev/null +scroll-down = ~/bin/pulseaudio-tail.sh --down 2> /dev/null [module/updates] type = custom/script -exec = ~/bin/updates.sh +exec = ~/bin/updates.sh 2> /dev/null interval = 600 format-prefix = "" format-underline = ${colors.alert} @@ -212,7 +219,7 @@ format-underline = ${colors.alert} type = internal/battery battery = BAT0 adapter = AC -full-at = 97 +full-at = 96 format-charging = format-charging-underline = ${colors.secondary} diff --git a/.conky/FuzzyClock/conkyrc b/.conky/FuzzyClock/conkyrc index cc3de3a..993d35b 100644 --- a/.conky/FuzzyClock/conkyrc +++ b/.conky/FuzzyClock/conkyrc @@ -25,7 +25,7 @@ gap_y=200, minimum_width=1920, own_window=true, -own_window_type="desktop", +own_window_type="override", own_window_transparent=true, own_window_hints="undecorated,below,sticky,skip_taskbar,skip_pager", @@ -56,4 +56,4 @@ default_color='FFFFFF', conky.text = [[ ${font Poiret One:weight=Bold:size=30}${alignc}${execi 60 bash-fuzzy-clock} -]] \ No newline at end of file +]] diff --git a/bin/pulseaudio-tail.sh b/bin/pulseaudio-tail.sh index 62c18b2..005b960 100755 --- a/bin/pulseaudio-tail.sh +++ b/bin/pulseaudio-tail.sh @@ -2,16 +2,6 @@ sink=0 -show_active() { - if pacmd list-sinks | grep active | head -n 1 | grep -q speaker; then - echo "speaker" - elif pacmd list-sinks | grep active | head -n 1 | grep headphones; then - echo "headphones" - else - echo "hdmi" - fi -} - volume_up() { pactl set-sink-volume $sink +1% } diff --git a/bin/updates.sh b/bin/updates.sh index 5089344..cad8cba 100755 --- a/bin/updates.sh +++ b/bin/updates.sh @@ -1,12 +1,9 @@ #!/bin/sh updates_arch=$(checkupdates | wc -l) -updates_aur=$(pacaur -k | wc -l) -updates=$(("$updates_arch" + "$updates_aur")) - -if [ "$updates" -gt 0 ]; then - echo " $updates" +if [ "$updates_arch" -gt 0 ]; then + echo " $updates_arch" else echo "" fi