Compare commits
3 Commits
9b54911fbf
...
5966613dfa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5966613dfa | ||
|
|
e26a85f3a9 | ||
|
|
33f1469afa |
@ -16,6 +16,40 @@ 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:
|
||||||
@ -113,33 +147,6 @@ 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 " adefault start-up bnoise-fix cdual dhorizontal etearing"
|
set $mode_launch " adefault start-up bnoise-fix cdual dhorizontal etearing"
|
||||||
mode $mode_launch {
|
mode $mode_launch {
|
||||||
@ -155,7 +162,6 @@ mode $mode_launch {
|
|||||||
}
|
}
|
||||||
bindsym $mod+F10 mode "$mode_launch"
|
bindsym $mod+F10 mode "$mode_launch"
|
||||||
|
|
||||||
|
|
||||||
#############
|
#############
|
||||||
# Status Bar
|
# Status Bar
|
||||||
#############
|
#############
|
||||||
|
|||||||
@ -146,7 +146,12 @@ $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
|
||||||
|
|
||||||
|
|||||||
@ -64,3 +64,25 @@ 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"
|
||||||
|
}
|
||||||
|
|||||||
@ -99,3 +99,26 @@ 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'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user