From f11c775e3df37a8b5156e8ed540abc4027095bb7 Mon Sep 17 00:00:00 2001 From: pasha Date: Sat, 1 Apr 2023 23:37:44 +0300 Subject: [PATCH] upd bigg --- bigg/i3/config | 40 ++++++++++++------------- bigg/kitty/kitty.conf | 7 +++-- bigg/polybar/config.ini | 65 +++++++++++++++++++++++++---------------- 3 files changed, 64 insertions(+), 48 deletions(-) diff --git a/bigg/i3/config b/bigg/i3/config index ffebc24..6c28bc8 100644 --- a/bigg/i3/config +++ b/bigg/i3/config @@ -42,9 +42,12 @@ exec --no-startup-id picom -b ## Autotiling exec_always --no-startup-id autotiling -## Keyboard layouts +## Keyboard All exec_always --no-startup-id setxkbmap -layout us,ru exec_always --no-startup-id xkb-switch --i3 +exec_always --no-startup-id setxkbmap -option compose:sclk +exec_always --no-startup-id setxkbmap -option caps:escape +exec_always --no-startup-id setxkbmap -option altwin:menu_win ## xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the ## screen before suspend. Use loginctl lock-session to lock your screen. @@ -58,15 +61,9 @@ exec_always --no-startup-id xset -dpms # exec --no-startup-id feh --bg-fill ~/pics/wp/2b16x9.jpg ~/pics/wp/2b4x3.png exec --no-startup-id nitrogen --restore -## First panel +## Panels exec_always --no-startup-id ~/.config/i3/polybar.sh & -## Compose-key -exec_always --no-startup-id setxkbmap -option compose:menu - -## Caps to Esc -exec_always --no-startup-id setxkbmap -option caps:escape - ## Transmission exec --no-startup-id transmission-daemon @@ -79,19 +76,19 @@ exec --no-startup-id mousetrap -t 5 bindsym $mod+Escape exec --no-startup-id kitty -1 ikhal ## Play/Pause music -bindsym $mod+F1 exec --no-startup-id playerctl play-pause +bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause ## Stop music -bindsym $mod+F2 exec --no-startup-id playerctl stop +bindsym XF86AudioStop exec --no-startup-id playerctl stop ## Next/Prev music -bindsym $mod+F3 exec --no-startup-id playerctl previous -bindsym $mod+F4 exec --no-startup-id playerctl next +bindsym XF86AudioPrev exec --no-startup-id playerctl previous +bindsym XF86AudioNext exec --no-startup-id playerctl next ## MPD Volume control -bindsym $mod+F7 exec --no-startup-id mpc --host=192.168.0.186 volume -5 -bindsym $mod+F8 exec --no-startup-id mpc --host=192.168.0.186 volume +5 -bindsym $mod+F6 exec --no-startup-id mpc --host=192.168.0.186 toggleoutput 1 +bindsym XF86AudioRaiseVolume exec polybar-msg action "#mpdvol.hook.1" && polybar-msg action "#mpdvol.hook.0" +bindsym XF86AudioLowerVolume exec polybar-msg action "#mpdvol.hook.2" && polybar-msg action "#mpdvol.hook.0" +bindsym XF86Tools exec polybar-msg action "#mpdvol.hook.3" && polybar-msg action "#mpdvol.hook.0" ## Toggle keyboard layout bindsym $mod+space exec --no-startup-id xkb-switch --next @@ -106,8 +103,8 @@ bindsym --release Ctrl+Print exec --no-startup-id scrot -s --delay 2 bindsym --release Shift+Print exec --no-startup-id scrot --focused ## Notifications show -bindsym $mod+F9 exec --no-startup-id dunstctl history-pop -bindsym $mod+Shift+F9 exec --no-startup-id dunstctl close-all +bindsym XF86Explorer exec --no-startup-id dunstctl history-pop +bindsym Shift+XF86Explorer exec --no-startup-id dunstctl close-all ## Switch to urgent window bindsym $mod+x [urgent=latest] focus @@ -120,9 +117,12 @@ bindsym $mod+F5 scratchpad show ## Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status -bindsym $mod+F12 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status -bindsym $mod+F11 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status +bindsym $mod+F12 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status +bindsym $mod+F11 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status bindsym $mod+F10 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status +bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status +bindsym $mod+XF86Tools exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status # bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status ## Use Mouse+$mod to drag floating windows to their wanted position @@ -349,7 +349,7 @@ mode "$mode_system" { $(/home/username/.config/script/rtcdate.sh), mode "default" bindsym r exec --no-startup-id systemctl reboot, mode "default" bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" - bindsym h exec --no-startup-id systemctl hibernate, mode "default" + bindsym h exec --no-startup-id systemctl hibernate, mode "default" ## exit: Enter or Escape bindsym Return mode "default" diff --git a/bigg/kitty/kitty.conf b/bigg/kitty/kitty.conf index 8477e55..a00003d 100644 --- a/bigg/kitty/kitty.conf +++ b/bigg/kitty/kitty.conf @@ -1668,7 +1668,8 @@ kitty_mod ctrl+shift #: the value of this option to alter all default shortcuts that use #: kitty_mod. -clear_all_shortcuts no +# clear_all_shortcuts no +clear_all_shortcuts yes #: Remove all shortcut definitions up to this point. Useful, for #: instance, to remove the default shortcuts. @@ -1839,8 +1840,8 @@ map kitty_mod+g show_last_command_output #: New window -# map kitty_mod+enter new_window -# map cmd+enter new_window +# map kitty_mod+enter new_window +# map cmd+enter new_window #:: You can open a new kitty window running an arbitrary program, for #:: example:: diff --git a/bigg/polybar/config.ini b/bigg/polybar/config.ini index 9f3757c..47947a1 100644 --- a/bigg/polybar/config.ini +++ b/bigg/polybar/config.ini @@ -211,16 +211,25 @@ interval = 3600 [module/uptime] type = custom/script -exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' ) +format-prefix = "󰅔" +# exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' ) +exec = uptime | sed 's/.*up //g;s/,.*user.*//g' interval = 60 [module/mpdvol] -type = custom/script -exec = echo  $(mpc --host=192.168.0.186 status %volume%) -interval = 5 -scroll-up = mpc --host=192.168.0.186 volume +5 -scroll-down = mpc --host=192.168.0.186 volume -5 -click-left = mpc --host=192.168.0.186 toggleoutput 1 +type = custom/ipc +interval = 10 +initial = 1 + +hook-0 = echo  $(mpc --host=192.168.0.186 status %volume%) +hook-1 = mpc --host=192.168.0.186 volume +1 > /dev/null +hook-2 = mpc --host=192.168.0.186 volume -1 > /dev/null +hook-3 = mpc --host=192.168.0.186 toggleoutput 1 > /dev/null + +# exec = echo  $(mpc --host=192.168.0.186 status %volume%) +# scroll-up = mpc --host=192.168.0.186 volume +5 +# scroll-down = mpc --host=192.168.0.186 volume -5 +# click-left = mpc --host=192.168.0.186 toggleoutput 1 [module/ddcci] type = custom/script @@ -242,7 +251,13 @@ menu-0-1 = Suspend menu-0-1-exec = systemctl suspend label-open =  - +[module/openvpn] +type = custom/script +exec = hostname -i | sed 's#.*10\.8#10\.8#' +exec-if = pgrep -x openvpn +tail = true +interval = 5 +format-prefix = "󰢭 " ############### # INTERNAL # @@ -468,14 +483,14 @@ ramp-coreload-5 = ▆ ramp-coreload-6 = ▇ ramp-coreload-7 = █ -# [module/freq] -# type = custom/script -# format =