fix: better swaybar transparency, keep quotes with cliphist, force apps to specific workspace
This commit is contained in:
parent
22cf0396f3
commit
8d74fe2976
2 changed files with 28 additions and 14 deletions
|
|
@ -15,7 +15,14 @@ set $ws2 2 term
|
||||||
set $ws3 3 file
|
set $ws3 3 file
|
||||||
set $ws4 4 blog
|
set $ws4 4 blog
|
||||||
set $ws5 5 media
|
set $ws5 5 media
|
||||||
set $ws7 6 other
|
set $ws6 6 other
|
||||||
|
|
||||||
|
assign [app_id="firefox"] $ws1
|
||||||
|
assign [app_id="thunar"] $ws3
|
||||||
|
assign [class="Strawberry"] $ws5
|
||||||
|
|
||||||
|
# ubermenu
|
||||||
|
bindsym $mod+q exec bash -c 'sh ~/ubermenu'
|
||||||
|
|
||||||
default_border pixel 5
|
default_border pixel 5
|
||||||
default_floating_border pixel 5
|
default_floating_border pixel 5
|
||||||
|
|
@ -30,9 +37,9 @@ set {
|
||||||
$active #66ac9f
|
$active #66ac9f
|
||||||
}
|
}
|
||||||
# border background text indicator childborder
|
# border background text indicator childborder
|
||||||
client.focused $bg $bg $text $active $active
|
client.focused $bg $bg $text $active $active
|
||||||
|
|
||||||
output * bg ~/data/local/wallpaper/abstract.jpg fill
|
output * bg ~/data/local/wallpaper/lukasz-szmigiel-jFCViYFYcus-unsplash.jpg fill
|
||||||
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||||
|
|
||||||
|
|
@ -50,7 +57,8 @@ exec swayidle -w \
|
||||||
# Clipboard manager
|
# Clipboard manager
|
||||||
#exec wl-paste -t text --watch clipman store --no-persist
|
#exec wl-paste -t text --watch clipman store --no-persist
|
||||||
exec wl-paste --watch cliphist store
|
exec wl-paste --watch cliphist store
|
||||||
bindsym $mod+ctrl+v exec cliphist list | wmenu -l 3 | cliphist decode | wl-copy && wl-paste --no-newline | xargs -I {} wtype {}
|
# bindsym $mod+ctrl+v exec cliphist list | wmenu -l 3 | cliphist decode | wl-copy && wl-paste --no-newline | xargs -I {} wtype {}
|
||||||
|
bindsym $mod+ctrl+v exec cliphist list | wmenu -l 3 | cliphist decode | wl-copy && wtype -- $(wl-paste)
|
||||||
|
|
||||||
# Notifications
|
# Notifications
|
||||||
|
|
||||||
|
|
@ -63,7 +71,6 @@ input type:keyboard {
|
||||||
}
|
}
|
||||||
|
|
||||||
input type:pointer {
|
input type:pointer {
|
||||||
#accel_profile "flat" # disable mouse acceleration (enabled by default; to set it manually, use "adaptive" instead of "flat")
|
|
||||||
accel_profile "adaptive" # disable mouse acceleration (enabled by default; to set it manually, use "adaptive" instead of "flat")
|
accel_profile "adaptive" # disable mouse acceleration (enabled by default; to set it manually, use "adaptive" instead of "flat")
|
||||||
pointer_accel -0.85 # set mouse sensitivity (between -1 and 1)
|
pointer_accel -0.85 # set mouse sensitivity (between -1 and 1)
|
||||||
}
|
}
|
||||||
|
|
@ -123,7 +130,6 @@ bindsym $mod+3 workspace $ws3
|
||||||
bindsym $mod+4 workspace $ws4
|
bindsym $mod+4 workspace $ws4
|
||||||
bindsym $mod+5 workspace $ws5
|
bindsym $mod+5 workspace $ws5
|
||||||
bindsym $mod+6 workspace $ws6
|
bindsym $mod+6 workspace $ws6
|
||||||
bindsym $mod+7 workspace $ws7
|
|
||||||
# Move focused container to workspace
|
# Move focused container to workspace
|
||||||
bindsym $mod+Shift+1 move container to workspace $ws1
|
bindsym $mod+Shift+1 move container to workspace $ws1
|
||||||
bindsym $mod+Shift+2 move container to workspace $ws2
|
bindsym $mod+Shift+2 move container to workspace $ws2
|
||||||
|
|
@ -131,7 +137,6 @@ bindsym $mod+Shift+3 move container to workspace $ws3
|
||||||
bindsym $mod+Shift+4 move container to workspace $ws4
|
bindsym $mod+Shift+4 move container to workspace $ws4
|
||||||
bindsym $mod+Shift+5 move container to workspace $ws5
|
bindsym $mod+Shift+5 move container to workspace $ws5
|
||||||
bindsym $mod+Shift+6 move container to workspace $ws6
|
bindsym $mod+Shift+6 move container to workspace $ws6
|
||||||
bindsym $mod+Shift+7 move container to workspace $ws7
|
|
||||||
bindsym ctrl+alt+shift+n workspace next
|
bindsym ctrl+alt+shift+n workspace next
|
||||||
bindsym ctrl+alt+shift+p workspace prev
|
bindsym ctrl+alt+shift+p workspace prev
|
||||||
|
|
||||||
|
|
@ -193,6 +198,7 @@ bindsym ctrl+alt+shift+r mode "RESIZE"
|
||||||
# https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-keysyms.h
|
# https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-keysyms.h
|
||||||
# Get the device ID with `wpctl status` or use @DEFAULT_AUDIO_SINK@
|
# Get the device ID with `wpctl status` or use @DEFAULT_AUDIO_SINK@
|
||||||
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
bindsym --locked XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
|
# bindsym --release XF86AudioMute exec pkill -USR1 swaybar
|
||||||
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.01-
|
bindsym --locked XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.01-
|
||||||
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.01+
|
bindsym --locked XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 0.01+
|
||||||
# FIXME: https://wiki.archlinux.org/title/MPRIS
|
# FIXME: https://wiki.archlinux.org/title/MPRIS
|
||||||
|
|
@ -210,7 +216,9 @@ bar {
|
||||||
|
|
||||||
colors {
|
colors {
|
||||||
statusline #869795
|
statusline #869795
|
||||||
background #ffffff00
|
# background #ffffffa6
|
||||||
|
#background #ffffff33
|
||||||
|
background #0000004d
|
||||||
inactive_workspace #32323200 #32323200 #6c7e7c
|
inactive_workspace #32323200 #32323200 #6c7e7c
|
||||||
focused_workspace #2d4844 #2d4844 #d5dad9
|
focused_workspace #2d4844 #2d4844 #d5dad9
|
||||||
urgent_workspace #b4b479 #b4b479 #121c1b
|
urgent_workspace #b4b479 #b4b479 #121c1b
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ homeassistant_url="http://10.7.1.11:8123/api/states"
|
||||||
|
|
||||||
common() {
|
common() {
|
||||||
bg_ok="#66ac9f"
|
bg_ok="#66ac9f"
|
||||||
|
# bg_ok_trans="#00000033"
|
||||||
bg_ok_trans="#00000000"
|
bg_ok_trans="#00000000"
|
||||||
text_dark="#36454f"
|
text_dark="#36454f"
|
||||||
text_light="#c0c8c6"
|
text_light="#c0c8c6"
|
||||||
|
|
@ -19,7 +20,7 @@ common() {
|
||||||
crit="#710f3d"
|
crit="#710f3d"
|
||||||
. ~/.config/sway/.env.homeassistant
|
. ~/.config/sway/.env.homeassistant
|
||||||
echo -n "{"
|
echo -n "{"
|
||||||
echo -n "\"separator_block_width\":10,"
|
echo -n "\"separator_block_width\":0,"
|
||||||
echo -n "\"separator\":false,"
|
echo -n "\"separator\":false,"
|
||||||
echo -n "\"color\":\"$fg\","
|
echo -n "\"color\":\"$fg\","
|
||||||
echo -n "\"background\":\"$bg\","
|
echo -n "\"background\":\"$bg\","
|
||||||
|
|
@ -95,11 +96,13 @@ wifi() {
|
||||||
}
|
}
|
||||||
|
|
||||||
mydate() {
|
mydate() {
|
||||||
local bg=$bg_ok_trans
|
# local bg=$bg_ok_trans
|
||||||
local fg=$bg_ok
|
local bg=#404040b3
|
||||||
|
# local fg=$bg_ok
|
||||||
|
local fg=$warn1
|
||||||
local name="id_time"
|
local name="id_time"
|
||||||
local icon=""
|
local icon=""
|
||||||
local stat=$icon\ $(date +'%A, %d %B %R %Z')
|
local stat=\ $icon\ $(date +'%A, %d %B %R %Z')\
|
||||||
common
|
common
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -145,7 +148,10 @@ powerdraw() {
|
||||||
audio_volume() {
|
audio_volume() {
|
||||||
local name="audio"
|
local name="audio"
|
||||||
local volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk {'print $NF*100'})
|
local volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk {'print $NF*100'})
|
||||||
if [[ $(echo "$volume >= 50" | bc -l ) == "1" ]] && [[ $(echo "$volume < 60" | bc -l ) == "1" ]]; then
|
if [[ $(echo "$volume == 0" | bc -l ) == "1" ]] ; then
|
||||||
|
local bg=$text_light
|
||||||
|
local fg=$bg_ok_trans
|
||||||
|
elif [[ $(echo "$volume >= 50" | bc -l ) == "1" ]] && [[ $(echo "$volume < 60" | bc -l ) == "1" ]]; then
|
||||||
local bg=$warn1
|
local bg=$warn1
|
||||||
local fg=$text_dark
|
local fg=$text_dark
|
||||||
elif [[ $(echo "$volume >= 60" | bc -l ) == "1" ]] && [[ $(echo "$volume < 70" | bc -l ) == "1" ]]; then
|
elif [[ $(echo "$volume >= 60" | bc -l ) == "1" ]] && [[ $(echo "$volume < 70" | bc -l ) == "1" ]]; then
|
||||||
|
|
@ -164,7 +170,7 @@ audio_volume() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# header
|
# header
|
||||||
echo '{ "version": 1 , "click_events":false}'
|
echo '{ "version": 1, "click_events":false}'
|
||||||
echo '[[],'
|
echo '[[],'
|
||||||
|
|
||||||
while :
|
while :
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue