Compare commits

..

No commits in common. "5966613dfa4b9418d62f297538a2b4e01cdfa544" and "9b54911fbf91a0bc5cb994627cfc6e78e4d60cd8" have entirely different histories.

4 changed files with 30 additions and 86 deletions

View File

@ -16,40 +16,6 @@ default_border normal
# Font # Font
font pango:Hasklig Medium 9 font pango:Hasklig Medium 9
# autostart background applications
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec {
# $xdg-dirs
# $swayidle
$mako
$swappy_notify
# $autostart_dex
# $flashfocus
# $wlsunset
# $autotiling
# $foot_server
# $help_menu
# $cliphist_store
# $cliphist_watch
# $workspace_icons
# $mounting_daemon
}
exec_always {
# $kanshi
# $auto_xdg_keyboard
# $poweralert
# $watch_playerctl
# $calendar_daemon
# $update_rofi_theme
# $create_rofi_config
# $swayr_daemon
}
# https://github.com/Alexays/Waybar/issues/1093#issuecomment-841846291
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
### Idle configuration ### Idle configuration
# #
# Example configuration: # Example configuration:
@ -147,6 +113,33 @@ mode $mode_xkbmap {
} }
bindsym $mod+Ctrl+k mode $mode_xkbmap bindsym $mod+Ctrl+k mode $mode_xkbmap
# this is a menu dedicated to audio stuff
# some nice symbols to try here: 0|    論b籠i錄 
set $mode_audio "Audio    - + 0 y"
mode $mode_audio {
# Increase / decrease volume for the running sink only
bindsym k exec --no-startup-id pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f 1) +2%
bindsym plus exec --no-startup-id pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f 1) +2%
bindsym bracketleft exec --no-startup-id pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f 1) +2%
# Decrease
bindsym j exec --no-startup-id pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f 1) -2%
bindsym minus exec --no-startup-id pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f 1) -2%
bindsym bracketright exec --no-startup-id pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f 1) -2%
# Mute sound
bindsym 0 exec --no-startup-id pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f 1) toggle
# Start mps-youtube
bindsym y exec --no-startup-id urxvt -e mpsyt, mode "default"
# Toggle pause/play
bindsym space exec playerctl play-pause
#bindsym XF86AudioPause exec playerctl pause
#bindsym XF86AudioNext exec playerctl next
#bindsym XF86AudioPrev exec playerctl previous
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+F11 mode $mode_audio
# do a nice menu for custom launches # do a nice menu for custom launches
set $mode_launch " adefault start-up bnoise-fix cdual dhorizontal etearing" set $mode_launch " adefault start-up bnoise-fix cdual dhorizontal etearing"
mode $mode_launch { mode $mode_launch {
@ -162,6 +155,7 @@ mode $mode_launch {
} }
bindsym $mod+F10 mode "$mode_launch" bindsym $mod+F10 mode "$mode_launch"
############# #############
# Status Bar # Status Bar
############# #############

View File

@ -146,12 +146,7 @@ $bindsym --locked XF86AudioLowerVolume exec $volume_down
$bindsym --locked XF86AudioMute exec $volume_mute $bindsym --locked XF86AudioMute exec $volume_mute
# modes # modes
## Launch // Resize Mode ##
$bindsym $mod+r mode $mode_resize $bindsym $mod+r mode $mode_resize
## Launch // Exit Menu ##
$bindsym $mod+F12 mode $mode_shutdown $bindsym $mod+F12 mode $mode_shutdown
$bindsym $mod+F11 mode $mode_audio
## Action // Scale up  ##
bindsym $mod+equal exec $scale_up
## Action // Scale down  ##
bindsym $mod+minus exec $scale_down

View File

@ -64,25 +64,3 @@ mode --pango_markup $mode_shutdown {
# Return to default mode. # Return to default mode.
$bindsym Escape mode "default" $bindsym Escape mode "default"
} }
# AUDIO
# some nice symbols to try here: 0|    論b籠i錄 
set $mode_audio "Audio    - + 0 y"
mode $mode_audio {
# Increase / decrease volume for the running sink only
bindsym k exec $volume_up
# Decrease
bindsym j exec $volume_down
# Mute sound
bindsym 0 exec $volume_mute
# Start mps-youtube
bindsym y exec --no-startup-id urxvt -e mpsyt, mode "default"
# Toggle pause/play
bindsym space exec playerctl play-pause
#bindsym XF86AudioPause exec playerctl pause
#bindsym XF86AudioNext exec playerctl next
#bindsym XF86AudioPrev exec playerctl previous
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}

View File

@ -99,26 +99,3 @@ client.unfocused $dark0_hard_t $dark0_t $light0_hard $dark0_hard
client.urgent $bright_green $bright_orange $light0_hard $dark0_hard $bright_orange client.urgent $bright_green $bright_orange $light0_hard $dark0_hard $bright_orange
client.placeholder $bright_green $dark0_t $light0_hard $dark0_hard $dark0_hard client.placeholder $bright_green $dark0_t $light0_hard $dark0_hard $dark0_hard
client.background $dark0_hard client.background $dark0_hard
# audio control (manjaro)
set $sink_volume pactl get-sink-volume @DEFAULT_SINK@ | grep '^Volume:' | cut -d / -f 2 | tr -d ' ' | sed 's/%//'
set $source_volume pactl get-source-volume @DEFAULT_SOURCE@ | grep '^Volume:' | cut -d / -f 2 | tr -d ' ' | sed 's/%//'
set $volume_down $onscreen_bar $(pactl set-sink-volume @DEFAULT_SINK@ -5% && $sink_volume)
set $volume_up $onscreen_bar $(pactl set-sink-volume @DEFAULT_SINK@ +5% && $sink_volume)
set $volume_mute $onscreen_bar $(pactl set-sink-mute @DEFAULT_SINK@ toggle && pactl get-sink-mute @DEFAULT_SINK@ | sed -En "/no/ s/.*/$($sink_volume)/p; /yes/ s/.*/0/p")
set $mic_mute $onscreen_bar $(pactl set-source-mute @DEFAULT_SOURCE@ toggle && pactl get-source-mute @DEFAULT_SOURCE@ | sed -En "/no/ s/.*/$($source_volume)/p; /yes/ s/.*/0/p")
# scaling
set $scale_up $swayscripts/scale.sh up
set $scale_down $swayscripts/scale.sh down
# daemons
set $mako '$HOME/.config/sway/scripts/mako.sh --font "$term-font" --text-color "$text-color" --border-color "$accent-color" --background-color "$background-color" --border-size 3 --width 400 --height 200 --padding 20 --margin 20 --default-timeout 15000'
set $swappy_notify '[ -x "$(command -v swappy)" ] && /usr/share/sway/scripts/screenshot-notify.sh'
#set $poweralert '[ -x "$(command -v poweralertd)" ] && pkill poweralertd; poweralertd -s -i "line power" &'
#set $swayr_daemon '[ -x "$(command -v swayrd)" ] && pkill swayrd; RUST_BACKTRACE=1 RUST_LOG=swayr=debug swayrd &> /tmp/swayrd.log'
#set $cliphist_watch '[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && wl-paste --watch pkill -RTMIN+9 waybar'
#set $cliphist_store '[ -x "$(command -v wl-paste)" ] && [ -x "$(command -v cliphist)" ] && wl-paste --watch cliphist store'
#set $calendar_daemon 'calcurse --daemon'
set $nm_applet '[ -x "$(command -v nm-applet)" ] && nm-applet'
#set $watch_playerctl '[ -x "$(command -v playerctl)" ] && pkill playerctl; playerctl -a metadata --format \'{{status}} {{title}}\' --follow | while read line; do pkill -RTMIN+5 waybar; done'