Compare commits

...

15 commits

6 changed files with 55 additions and 19 deletions

View file

@ -10,3 +10,7 @@ font=monospace:pixelsize=19
initial-window-size-chars=120x24 initial-window-size-chars=120x24
include = ~/.cache/themer.lua/foot include = ~/.cache/themer.lua/foot
[csd]
border-width=2

View file

@ -17,15 +17,7 @@ set $menu fuzzel-run
font Inter Medium 10 font Inter Medium 10
### Output configuration ### Output configuration
# output * background /usr/share/backgrounds/gnome/blobs-d.svg fill
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * background $background solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration ### Idle configuration
# #
@ -43,6 +35,7 @@ bindsym $mod+Shift+p exec "lock && doas su -c 'echo mem > /sys/power/state'"
input * { input * {
repeat_delay 290 repeat_delay 290
repeat_rate 30 repeat_rate 30
natural_scroll on
} }
### Key bindings ### Key bindings
@ -83,6 +76,10 @@ input * {
bindsym $mod+Down focus down bindsym $mod+Down focus down
bindsym $mod+Up focus up bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
bindsym Mod1+Left focus left
bindsym Mod1+Down focus down
bindsym Mod1+Up focus up
bindsym Mod1+Right focus right
# Move the focused window with the same, but add Shift # Move the focused window with the same, but add Shift
bindsym $mod+Shift+$left move left bindsym $mod+Shift+$left move left
@ -93,6 +90,10 @@ input * {
bindsym $mod+Shift+Down move down bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right bindsym $mod+Shift+Right move right
bindsym Mod1+Shift+Left move left
bindsym Mod1+Shift+Down move down
bindsym Mod1+Shift+Up move up
bindsym Mod1+Shift+Right move right
bindsym $mod+Control+$left move workspace to output left bindsym $mod+Control+$left move workspace to output left
bindsym $mod+Control+$down move workspace to output down bindsym $mod+Control+$down move workspace to output down
@ -102,6 +103,10 @@ input * {
bindsym $mod+Control+Down move workspace to output down bindsym $mod+Control+Down move workspace to output down
bindsym $mod+Control+Up move workspace to output up bindsym $mod+Control+Up move workspace to output up
bindsym $mod+Control+Right move workspace to output right bindsym $mod+Control+Right move workspace to output right
bindsym Mod1+Control+Left move workspace to output left
bindsym Mod1+Control+Down move workspace to output down
bindsym Mod1+Control+Up move workspace to output up
bindsym Mod1+Control+Right move workspace to output right
# #
# Workspaces: # Workspaces:
# #
@ -128,21 +133,23 @@ input * {
# bindsym $mod+Shift+9 move container to workspace "9: media" # bindsym $mod+Shift+9 move container to workspace "9: media"
# bindsym $mod+Shift+0 move container to workspace number 10 # bindsym $mod+Shift+0 move container to workspace number 10
bindsym Mod4+Prior exec sway-switch_workspace prev
bindsym Mod4+Next exec sway-switch_workspace next
bindsym Mod4+Mod1+Prior exec sway-switch_workspace prev move
bindsym Mod4+Mod1+Next exec sway-switch_workspace next move
# Layout stuff: # Layout stuff:
bindsym $mod+a focus parent bindsym $mod+a focus parent
bindsym $mod+Shift+a focus child bindsym $mod+Shift+a focus child
bindsym $mod+s sticky toggle bindsym $mod+s sticky toggle
bindsym $mod+g layout toggle splitv splith stacking tabbed bindsym $mod+t layout toggle tabbed splith splitv
bindsym $mod+Shift+g split v bindsym $mod+v split v
bindsym $mod+f fullscreen bindsym $mod+f fullscreen
bindsym $mod+Shift+space floating toggle bindsym $mod+Shift+f floating toggle
# Swap focus between the tiling area and the floating area
bindsym $mod+space focus mode_toggle
# #
# Scratchpad: # Scratchpad:
@ -196,7 +203,7 @@ bar {
colors { colors {
statusline $foreground statusline $foreground
background $backgroundish background $background
focused_workspace $accent $accent $background focused_workspace $accent $accent $background
active_workspace $accentish $accentish $background active_workspace $accentish $accentish $background
inactive_workspace $background $background $foreground inactive_workspace $background $background $foreground
@ -249,7 +256,7 @@ for_window [app_id="telegram-desktop"] layout tabbed
exec brillo -I exec brillo -I
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec pipewire exec /usr/libexec/pipewire-launcher
exec "foot --server" exec "foot --server"
exec "wlsunset -l -34.61315 -L -58.37723" exec "wlsunset -l -34.61315 -L -58.37723"
exec swaync exec swaync

View file

@ -1 +1 @@
rose-pine-dawn rose-pine

View file

@ -0,0 +1,23 @@
#!/usr/bin/luajit
local direction = arg[1]
local move = arg[2]
--local file = io.popen "swaymsg -t get_outputs -r | jq -r '.[] | select(.focused == true) | .name'"
local file = io.popen "swaymsg -t get_workspaces -r | jq -r '.[] | select(.focused == true) | .name'"
local string = file:read '*a'
print(string)
local command = 'workspace'
if move == 'move' then
command = 'move container to workspace'
end
if direction == 'next' then
os.execute('swaymsg '..command..' '..string+1)
elseif direction == 'prev' then
if string+0 ~= 1 then
os.execute('swaymsg '..command..' '..string-1)
end
end

View file

@ -25,5 +25,7 @@ export XKB_DEFAULT_OPTIONS=caps:escape
export XCURSOR_THEME=Adwaita export XCURSOR_THEME=Adwaita
export SVDIR="$HOME/.local/share/service"
test -f "$HOME/.profile.$(hostname)" && source "$HOME/.profile.$(hostname)" test -f "$HOME/.profile.$(hostname)" && source "$HOME/.profile.$(hostname)"
export REMOTE="${REMOTE:-true}" export REMOTE="${REMOTE:-true}"

View file

@ -8,7 +8,7 @@ if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
mkdir -p "$HOME/.local/share/sway" mkdir -p "$HOME/.local/share/sway"
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log" log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
pgrep -U "$(id -u)" runsv >/dev/null || (nohup runsvdir ~/.local/share/service >/dev/null &; disown) pgrep -U "$(id -u)" runsv >/dev/null || (nohup runsvdir ~/.local/share/service ............. >/dev/null &)
exec env \ exec env \
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \ XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \