Compare commits
No commits in common. 'b88da7757e278536cbe2e191413682023fd69260' and 'be3085b4cacf53763ae2aa6eb580b574f73fae44' have entirely different histories.
b88da7757e
...
be3085b4ca
24 changed files with 543 additions and 465 deletions
@ -1,8 +1,8 @@ |
|||||||
font=atkinson hyperlegible 10 |
font=Victor Mono 9 |
||||||
text-color=#ffffffff |
text-color=#ffffffff |
||||||
background-color=#00000088 |
background-color=#000000cd |
||||||
width=300 |
width=300 |
||||||
border-size=2 |
border-size=2 |
||||||
border-radius=10 |
border-radius=10 |
||||||
border-color=#00000000 |
border-color=#00000000 |
||||||
default-timeout=3000 |
default-timeout=3000 |
@ -1,30 +1 @@ |
|||||||
### Input configuration |
|
||||||
# |
|
||||||
# Example configuration: |
|
||||||
# |
|
||||||
# input "2:14:SynPS/2_Synaptics_TouchPad" { |
|
||||||
# dwt enabled |
|
||||||
# tap enabled |
|
||||||
# natural_scroll enabled |
|
||||||
# middle_emulation enabled |
|
||||||
# } |
|
||||||
# |
|
||||||
|
|
||||||
# You can get the names of your inputs by running: swaymsg -t get_inputs |
|
||||||
# Read `man 5 sway-input` for more information about this section. |
|
||||||
|
|
||||||
input "9094:17208:Raydium_Corporation_Raydium_Touch_System" map_to_output eDP-1 |
input "9094:17208:Raydium_Corporation_Raydium_Touch_System" map_to_output eDP-1 |
||||||
input "2:10:TPPS/2_IBM_TrackPoint" pointer_accel 0.5 |
|
||||||
# input type:touch map_to_output LVDS-1 we don't do that here |
|
||||||
input "1133:16507:Logitech_MX_Vertical" pointer_accel -0.8 |
|
||||||
input "1133:45088:MX_Vertical_Mouse" pointer_accel -0.8 |
|
||||||
input "1133:49290:Logitech_MX_Vertical_Advanced_Ergonomic_Mouse" pointer_accel -0.8 |
|
||||||
input "1386:38:Wacom_Intuos5_touch_S_Pen" map_to_output DP-3 |
|
||||||
input "1386:38:Wacom_Intuos5_touch_S_Pad" map_to_output DP-3 |
|
||||||
input "1386:38:Wacom_Intuos5_touch_S_Finger" map_to_output DP-3 |
|
||||||
|
|
||||||
input type:keyboard { |
|
||||||
xkb_layout de |
|
||||||
xkb_variant us |
|
||||||
#xkb_options grp:alt_shift_toggle |
|
||||||
} |
|
@ -1,2 +1 @@ |
|||||||
for_window [title="Qalculate!"] floating enable |
for_window [title="Qalculate!"] floating enable |
||||||
for_window [class="wofi"] opacity 0.8 |
|
@ -1,26 +1 @@ |
|||||||
# Workspaces: |
|
||||||
# |
|
||||||
# Switch to workspace |
|
||||||
bindsym $mod+1 workspace 1 |
|
||||||
bindsym $mod+2 workspace 2 |
|
||||||
bindsym $mod+3 workspace 3 |
|
||||||
bindsym $mod+4 workspace 4 |
|
||||||
bindsym $mod+5 workspace 5 |
|
||||||
bindsym $mod+6 workspace 6 |
|
||||||
bindsym $mod+7 workspace 7 |
|
||||||
bindsym $mod+8 workspace 8 |
|
||||||
bindsym $mod+9 workspace 9 |
|
||||||
bindsym $mod+0 workspace 10 |
|
||||||
# Move focused container to workspace |
|
||||||
bindsym $mod+Shift+1 move container to workspace 1 |
|
||||||
bindsym $mod+Shift+2 move container to workspace 2 |
|
||||||
bindsym $mod+Shift+3 move container to workspace 3 |
|
||||||
bindsym $mod+Shift+4 move container to workspace 4 |
|
||||||
bindsym $mod+Shift+5 move container to workspace 5 |
|
||||||
bindsym $mod+Shift+6 move container to workspace 6 |
|
||||||
bindsym $mod+Shift+7 move container to workspace 7 |
|
||||||
bindsym $mod+Shift+8 move container to workspace 8 |
|
||||||
bindsym $mod+Shift+9 move container to workspace 9 |
|
||||||
bindsym $mod+Shift+0 move container to workspace 10 |
|
||||||
# Note: workspaces can have any name you want, not just numbers. |
|
||||||
# We just use 1-10 as the default. |
|
||||||
|
@ -0,0 +1,9 @@ |
|||||||
|
#!/bin/bash |
||||||
|
while (true); do |
||||||
|
percentage=acpi | awk '{split($4,a,"%"); print a[1]}' |
||||||
|
if [ $percentage > 6 ]; then |
||||||
|
swaynag -m "Battery is almost empty" -e bottom |
||||||
|
break |
||||||
|
fi |
||||||
|
sleep 30 |
||||||
|
done |
@ -0,0 +1,45 @@ |
|||||||
|
import json |
||||||
|
import time |
||||||
|
import sys |
||||||
|
|
||||||
|
def Compose(): |
||||||
|
header = {"version": 1} |
||||||
|
tim = Time() |
||||||
|
bat = Battery() |
||||||
|
# body = json.dumps(tim) +","+ json.dumps(bat) |
||||||
|
body = json.dumps(tim) |
||||||
|
sys.stdout.write(body) |
||||||
|
|
||||||
|
def Time(): |
||||||
|
t = time.localtime() |
||||||
|
tstr = str(t.tm_hour) + ":" + str(t.tm_min) |
||||||
|
tstrl = tstr + ":" + str(t.tm_sec) |
||||||
|
dstr = str(t.tm_mday) + "." + str(t.tm_mon) + "." + str(t.tm_year) |
||||||
|
b = { |
||||||
|
"full_text": tstrl + " " + dstr, |
||||||
|
"short_text": tstr, |
||||||
|
"name": "clock", |
||||||
|
"align": "center" |
||||||
|
} |
||||||
|
return b |
||||||
|
|
||||||
|
def Battery(): |
||||||
|
bat = open("/sys/class/power_supply/BAT0/capacity") |
||||||
|
level = int(bat.read()) |
||||||
|
bat.close |
||||||
|
state = open("/sys/class/power_supply/BAT0/status") |
||||||
|
sstring = str(state.read()) |
||||||
|
state.close |
||||||
|
b = { |
||||||
|
"full_text": str(level), |
||||||
|
"short_text": str(level), |
||||||
|
"name": "battery" |
||||||
|
} |
||||||
|
if sstring == "Charging": |
||||||
|
b['color'] = "#a1fcbcff" |
||||||
|
if sstring == "Discharging" and level <= 15: |
||||||
|
b['color'] = "#ea6069ff" |
||||||
|
return b |
||||||
|
|
||||||
|
Compose() |
||||||
|
|
@ -0,0 +1,5 @@ |
|||||||
|
#!/bin/sh |
||||||
|
time=$(date | awk '{ print $4}') |
||||||
|
year=$(date +'%Y-%m-%d') |
||||||
|
bat=$(acpi | head -n 1 | awk '{ print $3 " " $4}') |
||||||
|
echo $year $time $bat |
@ -0,0 +1,5 @@ |
|||||||
|
#!/bin/sh |
||||||
|
time=$(date | awk '{ print $4}') |
||||||
|
year=$(date +'%Y-%m-%d') |
||||||
|
bat=$(acpi | head -n 1 | awk '{ print $3 " " $4}') |
||||||
|
echo $year $time $bat |
@ -1 +0,0 @@ |
|||||||
Subproject commit 727de2ccdbd7d065eef316c22715cc9951f4819f |
|
@ -1 +0,0 @@ |
|||||||
Subproject commit 44e6be6222a062809d0377e2b05dded900dc260f |
|
@ -1 +0,0 @@ |
|||||||
Subproject commit 11520829210a34dc9c7e5be9dead152eaf3a4423 |
|
@ -1 +0,0 @@ |
|||||||
Subproject commit 6be2f34b5f06c8a6a23dc3dc835e69c132d58a18 |
|
@ -1 +0,0 @@ |
|||||||
Subproject commit 5d089e418efb1a00f47654014ed085deb3d0c878 |
|
@ -1,39 +0,0 @@ |
|||||||
set -g @plugin 'tmux-plugins/tpm' |
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible' |
|
||||||
set -g @plugin 'MunifTanjim/tmux-suspend' |
|
||||||
set -g @plugin 'MunifTanjim/tmux-mode-indicator' |
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect' |
|
||||||
set -g @plugin 'tmux-plugins/tmux-continuum' |
|
||||||
set -g @plugin 'tmux-plugins/tmux-open' |
|
||||||
set -g @plugin 'jaclu/tmux-menus' |
|
||||||
set -g @plugin 'b0o/tmux-autoreload' |
|
||||||
|
|
||||||
set -g @mode_indicator_prefix_prompt ' WAIT ' |
|
||||||
set -g @mode_indicator_copy_prompt ' COPY ' |
|
||||||
set -g @mode_indicator_sync_prompt ' SYNC ' |
|
||||||
set -g @mode_indicator_empty_prompt ' TMUX ' |
|
||||||
set -g @mode_indicator_prefix_mode_style 'bg=blue,fg=black' |
|
||||||
set -g @mode_indicator_copy_mode_style 'bg=yellow,fg=black' |
|
||||||
set -g @mode_indicator_sync_mode_style 'bg=red,fg=black' |
|
||||||
set -g @mode_indicator_empty_mode_style 'bg=cyan,fg=black' |
|
||||||
|
|
||||||
set -g @suspend_key 'F12' |
|
||||||
set -g @suspend_suspended_options " \ |
|
||||||
status-style::bg=#101010\\,fg=#303030 bold dim, \ |
|
||||||
window-status-current-style:gw:bg=brightblack\\,fg=black, \ |
|
||||||
window-status-last-style:gw:fg=#ff0000, \ |
|
||||||
window-status-style:gw:bg=#101010\\,fg=white, \ |
|
||||||
pane-active-style:gw:fg=#ff0000, \ |
|
||||||
@mode_indicator_custom_prompt:: SUS , \ |
|
||||||
@mode_indicator_custom_mode_style::bg=brightred\\,fg=white, \ |
|
||||||
" |
|
||||||
set -g status-right '%Y-%m-%d %H:%M #{tmux_mode_indicator}' |
|
||||||
|
|
||||||
set -g pane-border-style fg='#666666' |
|
||||||
set -g pane-active-border-style fg='#442244' |
|
||||||
set -g status-style 'bg=#010101,fg=#ffffff' |
|
||||||
# set -g window-status-last-style |
|
||||||
|
|
||||||
# set -g mouse on |
|
||||||
|
|
||||||
run '~/.config/tmux/plugins/tpm/tpm' |
|
@ -1,48 +1,270 @@ |
|||||||
* { |
* { |
||||||
border: none; |
border: none; |
||||||
font-family: atkinson hyperlegible; |
border-radius: 0; |
||||||
font-size: 14px; |
/* `otf-font-awesome` is required to be installed for icons */ |
||||||
|
font-family: Victor Mono Medium ,Roboto, Helvetica, Arial, sans-serif; |
||||||
|
font-size: 12px; |
||||||
|
min-height: 0; |
||||||
} |
} |
||||||
|
|
||||||
window#waybar { |
window#waybar { |
||||||
background: black; |
background-color: rgba(0,0,0, 0.8); |
||||||
|
color: transparent; |
||||||
|
transition-property: all; |
||||||
|
transition-duration: 200ms; |
||||||
|
transition-timing-function: ease-in-out; |
||||||
} |
} |
||||||
|
|
||||||
window#waybar.hidden { |
window#waybar.hidden { |
||||||
opacity: 0.2; |
background-color: yellow; |
||||||
|
} |
||||||
|
|
||||||
|
window#waybar.empty { |
||||||
|
background-color: transparent; |
||||||
|
} |
||||||
|
window#waybar.solo { |
||||||
|
background-color: rgba(0,0,0,0.8); |
||||||
|
} |
||||||
|
|
||||||
|
window#waybar.termite { |
||||||
|
background-color: #3F3F3F; |
||||||
|
} |
||||||
|
|
||||||
|
window#waybar.chromium { |
||||||
|
background-color: #000000; |
||||||
|
border: none; |
||||||
|
} |
||||||
|
|
||||||
|
#workspaces button { |
||||||
|
padding: 0 5px; |
||||||
|
background-color: transparent; |
||||||
|
min-width: 10px; |
||||||
|
color: white; |
||||||
|
/* Use box-shadow instead of border so the text isn't offset */ |
||||||
|
transition-property: box-shadow, color; |
||||||
|
transition-duration: 200ms; |
||||||
|
transition-timing-function: ease-in-out; |
||||||
|
} |
||||||
|
|
||||||
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ |
||||||
|
#workspaces button:hover { |
||||||
|
background: rgba(0, 0, 0, 0.2); |
||||||
|
color: rgba(100,50,255,1); |
||||||
|
/* box-shadow: inset 0 -3px #ffffff; */ |
||||||
|
} |
||||||
|
|
||||||
|
#workspaces button.focused { |
||||||
|
background-color: transparent; |
||||||
|
color: #ff00aa; |
||||||
|
} |
||||||
|
|
||||||
|
#workspaces button.urgent { |
||||||
|
background-color: #eb4d4b; |
||||||
|
} |
||||||
|
|
||||||
|
#mode { |
||||||
|
background-color: #64727D; |
||||||
|
} |
||||||
|
|
||||||
|
#clock{ |
||||||
|
|
||||||
|
} |
||||||
|
#battery, |
||||||
|
#cpu, |
||||||
|
#memory, |
||||||
|
#disk, |
||||||
|
#temperature, |
||||||
|
#backlight, |
||||||
|
#network, |
||||||
|
#pulseaudio, |
||||||
|
#custom-media, |
||||||
|
#tray, |
||||||
|
#mode, |
||||||
|
#idle_inhibitor{ |
||||||
|
padding: 0 10px; |
||||||
|
margin: 0 4px; |
||||||
|
color: #222; |
||||||
|
border-bottom-right-radius: 10px; |
||||||
|
border-bottom-left-radius: 10px; |
||||||
|
} |
||||||
|
#mpd { |
||||||
|
padding: 0 10px; |
||||||
|
margin: 0 4px; |
||||||
|
color: #ffffff; |
||||||
} |
} |
||||||
|
|
||||||
#window { |
#window { |
||||||
background: black; |
transition-property: color; |
||||||
|
transition-duration: 1s; |
||||||
|
} |
||||||
|
#workspaces { |
||||||
|
margin: 0 1px; |
||||||
} |
} |
||||||
|
|
||||||
widget > * { |
/* If workspaces is the leftmost module, omit left margin */ |
||||||
margin: 0px; |
.modules-left > widget:first-child > #workspaces { |
||||||
padding: 0px 10px 0px 10px; |
margin-left: 0; |
||||||
transition: none; |
} |
||||||
min-height:10px; |
|
||||||
background: transparent; |
/* If workspaces is the rightmost module, omit right margin */ |
||||||
color: white; |
.modules-right > widget:last-child > #workspaces { |
||||||
|
margin-right: 0; |
||||||
|
} |
||||||
|
|
||||||
|
#clock { |
||||||
|
background-color: rgba(20,20,20,0.6); |
||||||
|
border-bottom-right-radius: 10px; |
||||||
|
border-bottom-left-radius: 10px; |
||||||
|
color: white; |
||||||
|
padding: 0 10px; |
||||||
|
margin: 0 4px; |
||||||
} |
} |
||||||
|
|
||||||
#battery { |
#battery { |
||||||
color: #91ffc1; |
background-color: rgba(20,20,20,0.6); |
||||||
transition: color 0.2s ease; |
color: #fff; |
||||||
|
border-bottom-right-radius: 10px; |
||||||
|
border-bottom-left-radius: 10px; |
||||||
|
transition-property: background-color; |
||||||
|
transition-duration: 500ms; |
||||||
|
} |
||||||
|
|
||||||
|
#battery.charging, #battery.plugged { |
||||||
|
color: #ffffff; |
||||||
|
background-color: #689948; |
||||||
} |
} |
||||||
#battery.warning { |
|
||||||
color: #ffc144; |
@keyframes blink { |
||||||
|
to { |
||||||
|
background-color: #ffffff; |
||||||
|
color: #000000; |
||||||
|
} |
||||||
} |
} |
||||||
#battery.critical { |
|
||||||
color: #ff4444; |
#battery.critical:not(.charging) { |
||||||
|
background-color: #e54c4c; |
||||||
|
color: #ffffff; |
||||||
|
animation-name: blink; |
||||||
|
animation-duration: 0.5s; |
||||||
|
animation-timing-function: linear; |
||||||
|
animation-iteration-count: infinite; |
||||||
|
animation-direction: alternate; |
||||||
|
} |
||||||
|
|
||||||
|
label:focus { |
||||||
|
background-color: #000000; |
||||||
|
} |
||||||
|
|
||||||
|
#cpu { |
||||||
|
background-color: #2ecc71; |
||||||
|
color: #000000; |
||||||
|
} |
||||||
|
|
||||||
|
#memory { |
||||||
|
background-color: #9b59b6; |
||||||
|
} |
||||||
|
|
||||||
|
#disk { |
||||||
|
background-color: #964B00; |
||||||
|
} |
||||||
|
|
||||||
|
#backlight { |
||||||
|
background-color: #90b1b1; |
||||||
} |
} |
||||||
|
|
||||||
#network { |
#network { |
||||||
color: #91ffc1; |
background-color: rgba(10, 120, 120, 0.6); |
||||||
transition: color 0.2s ease; |
border-bottom-right-radius: 10px; |
||||||
|
border-bottom-left-radius: 10px; |
||||||
|
transition-property: background-color; |
||||||
|
transition-duration: 500ms; |
||||||
|
color: white; |
||||||
|
} |
||||||
|
|
||||||
|
#network.disconnected { |
||||||
|
background-color: rgba(120, 10, 120, 0.6); |
||||||
|
} |
||||||
|
|
||||||
|
#bluetooth { |
||||||
|
background-color: rgba(170, 110, 180, 0.6); |
||||||
|
border-bottom-right-radius: 10px; |
||||||
|
border-bottom-left-radius: 10px; |
||||||
|
transition-property: background-color; |
||||||
|
transition-duration: 500ms; |
||||||
|
padding: 0 10px; |
||||||
|
margin: 0 4px; |
||||||
|
color: white; |
||||||
|
} |
||||||
|
|
||||||
|
#pulseaudio { |
||||||
|
background-color: #f1c40f; |
||||||
|
color: #000000; |
||||||
|
} |
||||||
|
|
||||||
|
#pulseaudio.muted { |
||||||
|
background-color: #90b1b1; |
||||||
|
color: #2a5c45; |
||||||
|
} |
||||||
|
|
||||||
|
#custom-media { |
||||||
|
background-color: #66cc99; |
||||||
|
color: #2a5c45; |
||||||
|
min-width: 100px; |
||||||
|
} |
||||||
|
|
||||||
|
#custom-media.custom-spotify { |
||||||
|
background-color: #66cc99; |
||||||
|
} |
||||||
|
|
||||||
|
#custom-media.custom-vlc { |
||||||
|
background-color: #ffa000; |
||||||
} |
} |
||||||
#network.linked{ |
|
||||||
color: #ffc144; |
#temperature { |
||||||
|
background-color: #f0932b; |
||||||
|
} |
||||||
|
|
||||||
|
#temperature.critical { |
||||||
|
background-color: #eb4d4b; |
||||||
|
} |
||||||
|
|
||||||
|
#tray { |
||||||
|
background-color: rgba(20,20,20,0.6); |
||||||
|
border-bottom-right-radius: 10px; |
||||||
|
border-bottom-left-radius: 10px; |
||||||
|
} |
||||||
|
|
||||||
|
#idle_inhibitor { |
||||||
|
background-color: rgba(20,20,20, 0.6); |
||||||
|
color: rgba(200,200,200, 0.6); |
||||||
|
} |
||||||
|
|
||||||
|
#idle_inhibitor.activated { |
||||||
|
background-color: #ecf0f1; |
||||||
|
color: #2d3436; |
||||||
} |
} |
||||||
#network.disconnected{ |
|
||||||
color: #ff4444; |
#mpd { |
||||||
|
background-color: #66cc99; |
||||||
|
color: #2a5c45; |
||||||
|
} |
||||||
|
|
||||||
|
#mpd.disconnected { |
||||||
|
background-color: #f53c3c; |
||||||
|
} |
||||||
|
|
||||||
|
#mpd.stopped { |
||||||
|
background-color: #90b1b1; |
||||||
|
} |
||||||
|
|
||||||
|
#mpd.paused { |
||||||
|
background-color: #51a37a; |
||||||
|
} |
||||||
|
|
||||||
|
#language { |
||||||
|
background: #00b093; |
||||||
|
color: #740864; |
||||||
|
padding: 0 5px; |
||||||
|
margin: 0 5px; |
||||||
|
min-width: 16px; |
||||||
} |
} |
||||||
|
@ -1,277 +0,0 @@ |
|||||||
# Input configuration ────────────────────────────────────────────────────────── |
|
||||||
[input] |
|
||||||
xkb_layout = de |
|
||||||
xkb_variant = us |
|
||||||
#mouse_accel_profile = flat |
|
||||||
# I like to use this with my external mouse but I have not configured it |
|
||||||
|
|
||||||
# Core options ───────────────────────────────────────────────────────────────── |
|
||||||
|
|
||||||
[core] |
|
||||||
|
|
||||||
plugins = \ |
|
||||||
alpha \ |
|
||||||
animate \ |
|
||||||
autostart \ |
|
||||||
command \ |
|
||||||
fast-switcher \ |
|
||||||
grid \ |
|
||||||
idle \ |
|
||||||
invert \ |
|
||||||
move \ |
|
||||||
oswitch \ |
|
||||||
place \ |
|
||||||
resize \ |
|
||||||
switcher \ |
|
||||||
vswitch \ |
|
||||||
window-rules \ |
|
||||||
wm-actions \ |
|
||||||
wrot \ |
|
||||||
zoom \ |
|
||||||
expo \ |
|
||||||
follow-focus \ |
|
||||||
blur \ |
|
||||||
scale |
|
||||||
|
|
||||||
background_color = 0 0 0 1 |
|
||||||
|
|
||||||
# Close focused window. |
|
||||||
close_top_view = <super> <shift> KEY_Q | <alt> KEY_F4 |
|
||||||
|
|
||||||
# Workspaces arranged into a grid: 3 × 3. |
|
||||||
vwidth = 5 |
|
||||||
vheight = 5 |
|
||||||
|
|
||||||
# Prefer client-side decoration or server-side decoration |
|
||||||
preferred_decoration_mode = server |
|
||||||
|
|
||||||
[place] |
|
||||||
mode = cascade |
|
||||||
|
|
||||||
# Mouse bindings ─────────────────────────────────────────────────────────────── |
|
||||||
|
|
||||||
# Drag windows by holding down Super and left mouse button. |
|
||||||
[move] |
|
||||||
activate = <super> BTN_LEFT |
|
||||||
|
|
||||||
# Resize them with right mouse button + Super. |
|
||||||
[resize] |
|
||||||
activate = <super> BTN_RIGHT |
|
||||||
|
|
||||||
# Zoom in the desktop by scrolling + Super. |
|
||||||
[zoom] |
|
||||||
modifier = <super> |
|
||||||
|
|
||||||
# Change opacity by scrolling with Super + Alt. |
|
||||||
[alpha] |
|
||||||
modifier = <super> <alt> |
|
||||||
|
|
||||||
# Rotate windows with the mouse. |
|
||||||
[wrot] |
|
||||||
activate = <super> <ctrl> BTN_RIGHT |
|
||||||
|
|
||||||
# Startup commands ───────────────────────────────────────────────────────────── |
|
||||||
|
|
||||||
[autostart] |
|
||||||
#background = feh Downloads/milad-fakurian-seA-FPPXL-M-unsplash.jpg |
|
||||||
automatic_output_configuration = kanshi |
|
||||||
notification_daemon = mako |
|
||||||
information_bar = waybar |
|
||||||
#gamma = gammastep -l 7:51 -t 6500:3000 -b 1:0.8 |
|
||||||
idle = swayidle before-sleep export LAST_BRIGHTNESS=$(light -G) && light -S 1 && swaylock -i Downloads/lock.png -u && light -S $LAST_BRIGHTNESS |
|
||||||
#idle = swayidle before-sleep swaylock --color 000000 |
|
||||||
portal = /usr/libexec/xdg-desktop-portal |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
element_dekstop = element-desktop |
|
||||||
firefox_main = firefox |
|
||||||
|
|
||||||
|
|
||||||
[window-rules] |
|
||||||
rule_element_desktop_0 = on created if app_id is "element-desktop" then assign_workspace 2 5 |
|
||||||
rule_element_desktop_1 = on created if app_id is "element-desktop" then maximise |
|
||||||
|
|
||||||
# Applications ───────────────────────────────────────────────────────────────── |
|
||||||
|
|
||||||
[command] |
|
||||||
|
|
||||||
binding_terminal = <super> KEY_ENTER |
|
||||||
command_terminal = kitty |
|
||||||
|
|
||||||
binding_super_terminal = <super> <shift> KEY_ENTER |
|
||||||
command_super_terminal = kitty mosh root@map-services.in-nue.evl.li |
|
||||||
|
|
||||||
binding_qalculate = <super> KEY_Q |
|
||||||
command_qalculate = qalculate-gtk |
|
||||||
|
|
||||||
binding_launcher = <super> KEY_D |
|
||||||
command_launcher = bemenu-run --fn "atkinson hyperlegible[15]" -b -ip ">" -W 0.8 |
|
||||||
|
|
||||||
binding_lock = <super> KEY_L |
|
||||||
# command_lock = swaylock --color 000000 |
|
||||||
command_lock = export LAST_BRIGHTNESS=$(light -G) && light -S 1 && swaylock -i Downloads/lock.png -u && light -S $LAST_BRIGHTNESS |
|
||||||
|
|
||||||
binding_suspend = <super> <shift> KEY_S |
|
||||||
# command_suspend = swaylock --color 000000 & systemctl suspend |
|
||||||
command_suspend = export LAST_BRIGHTNESS=$(light -G) && light -S 1 && swaylock -i Downloads/lock.png -u & systemctl suspend & light -S 100 |
|
||||||
|
|
||||||
binding_hibrenate = <super> <shift> <alt> KEY_S |
|
||||||
command_hibrenate = systemctl hibrenate |
|
||||||
|
|
||||||
# Logout |
|
||||||
# https://github.com/ArtsyMacaw/wlogout |
|
||||||
binding_logout = <super> KEY_ESC |
|
||||||
command_logout = wlogout |
|
||||||
|
|
||||||
# Screenshots |
|
||||||
# https://wayland.emersion.fr/grim/ |
|
||||||
# https://wayland.emersion.fr/slurp/ |
|
||||||
binding_screenshot = <super> KEY_P |
|
||||||
command_screenshot = grimshot copy area |
|
||||||
binding_screenshot2 = <print> |
|
||||||
command_screenshot2 = grimshot copy area |
|
||||||
binding_screenshot_interactive = <shift> KEY_PRINT |
|
||||||
command_screenshot_interactive = slurp | grim -g - $(date '+%F_%T').webp |
|
||||||
|
|
||||||
# Volume controls |
|
||||||
repeatable_binding_volume_up = KEY_VOLUMEUP |
|
||||||
command_volume_up = pactl set-sink-volume @DEFAULT_SINK@ +5% |
|
||||||
repeatable_binding_volume_down = KEY_VOLUMEDOWN |
|
||||||
command_volume_down = pactl set-sink-volume @DEFAULT_SINK@ -5% |
|
||||||
binding_mute = KEY_MUTE |
|
||||||
command_mute = pactl set-sink-mute @DEFAULT_SINK@ toggle |
|
||||||
|
|
||||||
# Screen brightness |
|
||||||
# https://haikarainen.github.io/light/ |
|
||||||
repeatable_binding_light_up = KEY_BRIGHTNESSUP |
|
||||||
command_light_up = light -A 5 |
|
||||||
repeatable_binding_light_down = KEY_BRIGHTNESSDOWN |
|
||||||
command_light_down = light -U 5 |
|
||||||
|
|
||||||
# Windows ────────────────────────────────────────────────────────────────────── |
|
||||||
|
|
||||||
# Actions related to window management functionalities. |
|
||||||
# |
|
||||||
# Example configuration: |
|
||||||
# |
|
||||||
[wm-actions] |
|
||||||
#toggle_fullscreen = <super> KEY_F |
|
||||||
toggle_always_on_top = <super> KEY_X |
|
||||||
# toggle_sticky = <super> <shift> KEY_X |
|
||||||
|
|
||||||
# Position the windows in certain regions of the output. |
|
||||||
[grid] |
|
||||||
# |
|
||||||
# ⇱ ↑ ⇲ │ 7 8 9 |
|
||||||
# ← f → │ 4 5 6 |
|
||||||
# ⇱ ↓ ⇲ d │ 1 2 3 0 |
|
||||||
# ‾ ‾ |
|
||||||
slot_bl = <super> KEY_KP1 |
|
||||||
slot_b = <super> KEY_KP2 |
|
||||||
slot_br = <super> KEY_KP3 |
|
||||||
slot_l = <super> KEY_LEFT | <super> KEY_KP4 |
|
||||||
slot_c = <super> KEY_UP | <super> KEY_KP5 |
|
||||||
slot_r = <super> KEY_RIGHT | <super> KEY_KP6 |
|
||||||
slot_tl = <super> KEY_KP7 |
|
||||||
slot_t = <super> KEY_KP8 |
|
||||||
slot_tr = <super> KEY_KP9 |
|
||||||
# Restore default. |
|
||||||
restore = <super> KEY_DOWN | <super> KEY_KP0 |
|
||||||
|
|
||||||
# Change active window with an animation. |
|
||||||
[switcher] |
|
||||||
next_view = <alt> KEY_TAB |
|
||||||
prev_view = <alt> <shift> KEY_TAB |
|
||||||
|
|
||||||
# Simple active window switcher. |
|
||||||
[fast-switcher] |
|
||||||
activate = <alt> KEY_ESC |
|
||||||
|
|
||||||
# Workspaces ─────────────────────────────────────────────────────────────────── |
|
||||||
|
|
||||||
# Switch to workspace. |
|
||||||
[vswitch] |
|
||||||
binding_left = <ctrl> <super> KEY_LEFT |
|
||||||
binding_down = <ctrl> <super> KEY_DOWN |
|
||||||
binding_up = <ctrl> <super> KEY_UP |
|
||||||
binding_right = <ctrl> <super> KEY_RIGHT |
|
||||||
# Move the focused window with the same key-bindings, but add Shift. |
|
||||||
with_win_left = <ctrl> <super> <shift> KEY_LEFT |
|
||||||
with_win_down = <ctrl> <super> <shift> KEY_DOWN |
|
||||||
with_win_up = <ctrl> <super> <shift> KEY_UP |
|
||||||
with_win_right = <ctrl> <super> <shift> KEY_RIGHT |
|
||||||
# i3-like bindings |
|
||||||
binding_1 = <super> KEY_1 |
|
||||||
binding_2 = <super> KEY_2 |
|
||||||
binding_3 = <super> KEY_3 |
|
||||||
binding_4 = <super> KEY_4 |
|
||||||
binding_5 = <super> KEY_5 |
|
||||||
binding_6 = <super> KEY_6 |
|
||||||
binding_7 = <super> KEY_7 |
|
||||||
binding_8 = <super> KEY_8 |
|
||||||
binding_9 = <super> KEY_9 |
|
||||||
binding_10 = <super> KEY_0 |
|
||||||
send_win_1 = <super> <shift> KEY_1 |
|
||||||
send_win_2 = <super> <shift> KEY_2 |
|
||||||
send_win_3 = <super> <shift> KEY_3 |
|
||||||
send_win_4 = <super> <shift> KEY_4 |
|
||||||
send_win_5 = <super> <shift> KEY_5 |
|
||||||
send_win_6 = <super> <shift> KEY_6 |
|
||||||
send_win_7 = <super> <shift> KEY_7 |
|
||||||
send_win_8 = <super> <shift> KEY_8 |
|
||||||
send_win_9 = <super> <shift> KEY_9 |
|
||||||
send_win_10 = <super> <shift> KEY_0 |
|
||||||
duration = 0 |
|
||||||
|
|
||||||
# Outputs ────────────────────────────────────────────────────────────────────── |
|
||||||
|
|
||||||
# Invert the colors of the whole output. |
|
||||||
[invert] |
|
||||||
toggle = <super> KEY_I |
|
||||||
|
|
||||||
# Rules ──────────────────────────────────────────────────────────────────────── |
|
||||||
|
|
||||||
# Example configuration: |
|
||||||
# |
|
||||||
# [window-rules] |
|
||||||
# maximize_alacritty = on created if app_id is "Alacritty" then maximize |
|
||||||
# |
|
||||||
# You can get the properties of your applications with the following command: |
|
||||||
# $ WAYLAND_DEBUG=1 alacritty 2>&1 | kak |
|
||||||
# |
|
||||||
# See Window rules for a complete reference. |
|
||||||
# https://github.com/WayfireWM/wayfire/wiki/Configuration#window-rules |
|
||||||
|
|
||||||
[animate] |
|
||||||
close_animation = fade |
|
||||||
open_animation = fade |
|
||||||
duration = 100 |
|
||||||
fire_particles = 32 |
|
||||||
fire_particle_size = 16 |
|
||||||
|
|
||||||
[wobbly] |
|
||||||
friction = 5 |
|
||||||
spring_k = 100 |
|
||||||
grid_resolution = 7 |
|
||||||
|
|
||||||
[follow-focus] |
|
||||||
raise_on_top = false |
|
||||||
|
|
||||||
[expo] |
|
||||||
toggle = <super> KEY_MINUS |
|
||||||
background = 0.4 0.4 0.5 1 |
|
||||||
offset = 5 |
|
||||||
|
|
||||||
[autostart] |
|
||||||
0_0 = systemctl --user import-environment |
|
||||||
xdg = sleep 1 && (XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=sway /usr/lib/xdg-desktop-portal --replace & /usr/lib/xdg-desktop-portal-wlr) |
|
||||||
|
|
||||||
[scale] |
|
||||||
toggle = <super> KEY_A |
|
||||||
duration = 200 |
|
||||||
|
|
||||||
[blur] |
|
||||||
method=box |
|
||||||
box_degrade=1 |
|
Loading…
Reference in new issue