mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2025-11-04 14:47:38 +01:00
suicide
This commit is contained in:
parent
b909b28e1c
commit
d081d00e90
4 changed files with 119 additions and 51 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
exec stacki3 &
|
#exec waybar &
|
||||||
exec waybar &
|
#exec autotiling &
|
||||||
exec foot --server &
|
|
||||||
#touchpad
|
#touchpad
|
||||||
input "1267:12448:ELAN0709:00_04F3:30A0_Touchpad" {
|
input "1267:12448:ELAN0709:00_04F3:30A0_Touchpad" {
|
||||||
dwt enabled
|
dwt enabled
|
||||||
|
|
@ -9,11 +8,11 @@ input "1267:12448:ELAN0709:00_04F3:30A0_Touchpad" {
|
||||||
}
|
}
|
||||||
|
|
||||||
#cursor
|
#cursor
|
||||||
seat * xcursor_theme Adwaita 24
|
seat * xcursor_theme ModernXP 32
|
||||||
|
|
||||||
# gaps
|
# gaps
|
||||||
gaps inner 10
|
gaps inner 5
|
||||||
gaps outer 5
|
gaps outer 2
|
||||||
|
|
||||||
### Variables
|
### Variables
|
||||||
#
|
#
|
||||||
|
|
@ -25,17 +24,19 @@ set $down j
|
||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
# Your preferred terminal emulator
|
# Your preferred terminal emulator
|
||||||
set $term footclient
|
set $term kitty
|
||||||
|
set $filemgr kitty -e ranger
|
||||||
# Your preferred application launcher
|
# Your preferred application launcher
|
||||||
set $menu wmenu-run
|
set $menu wmenu-run -f "UbuntuMono 15" -N "#1c1c1c" -n "#B0B0B0" -S "#2d2d2d" -s "#ffffff" -l 10
|
||||||
|
# set browser
|
||||||
|
set $browser brave
|
||||||
|
|
||||||
output * bg /home/coast/files/pics/flowers.png stretch
|
output eDP-1 disable
|
||||||
#
|
#output eDP-1 pos 0 0
|
||||||
# Example configuration:
|
output HDMI-A-1 pos 1920 0
|
||||||
#
|
|
||||||
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
output * bg /home/coast/Pictures/nature3.png stretch
|
||||||
#
|
output HDMI-A-1 resolution 1920x1080 position 1920,0
|
||||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
|
||||||
|
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 300 'swaylock -f -c 000000' \
|
timeout 300 'swaylock -f -c 000000' \
|
||||||
|
|
@ -63,6 +64,8 @@ client.urgent #ff0000 #000000 #ffffff #ff0000 #ff0000
|
||||||
|
|
||||||
bindsym $mod+r exec $menu
|
bindsym $mod+r exec $menu
|
||||||
|
|
||||||
|
bindsym $mod+Shift+b exec $browser
|
||||||
|
|
||||||
# Drag floating windows by holding down $mod and left mouse button.
|
# Drag floating windows by holding down $mod and left mouse button.
|
||||||
# Resize them with right mouse button + $mod.
|
# Resize them with right mouse button + $mod.
|
||||||
# Despite the name, also works for non-floating windows.
|
# Despite the name, also works for non-floating windows.
|
||||||
|
|
@ -73,6 +76,8 @@ client.urgent #ff0000 #000000 #ffffff #ff0000 #ff0000
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $mod+Shift+c reload
|
||||||
|
|
||||||
bindsym $mod+Shift+q exec 'swaymsg exit'
|
bindsym $mod+Shift+q exec 'swaymsg exit'
|
||||||
|
|
||||||
|
bindsym $mod+Shift+f exec $filemgr
|
||||||
#
|
#
|
||||||
# Moving around:
|
# Moving around:
|
||||||
#
|
#
|
||||||
|
|
@ -82,10 +87,10 @@ client.urgent #ff0000 #000000 #ffffff #ff0000 #ff0000
|
||||||
bindsym $mod+$up focus up
|
bindsym $mod+$up focus up
|
||||||
bindsym $mod+$right focus right
|
bindsym $mod+$right focus right
|
||||||
# Or use $mod+[up|down|left|right]
|
# Or use $mod+[up|down|left|right]
|
||||||
bindsym $mod+j focus up
|
bindsym $mod+Left focus left
|
||||||
bindsym $mod+k focus down
|
bindsym $mod+Down focus down
|
||||||
bindsym $mod+Shift+k focus left
|
bindsym $mod+Up focus up
|
||||||
bindsym $mod+Shift+j focus right
|
bindsym $mod+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
|
||||||
|
|
@ -108,7 +113,6 @@ client.urgent #ff0000 #000000 #ffffff #ff0000 #ff0000
|
||||||
bindsym $mod+7 workspace number 7
|
bindsym $mod+7 workspace number 7
|
||||||
bindsym $mod+8 workspace number 8
|
bindsym $mod+8 workspace number 8
|
||||||
bindsym $mod+9 workspace number 9
|
bindsym $mod+9 workspace number 9
|
||||||
bindsym $mod+0 workspace number 10
|
|
||||||
|
|
||||||
# Move focused container to workspace
|
# Move focused container to workspace
|
||||||
bindsym $mod+Shift+1 move container to workspace number 1
|
bindsym $mod+Shift+1 move container to workspace number 1
|
||||||
|
|
@ -120,7 +124,6 @@ client.urgent #ff0000 #000000 #ffffff #ff0000 #ff0000
|
||||||
bindsym $mod+Shift+7 move container to workspace number 7
|
bindsym $mod+Shift+7 move container to workspace number 7
|
||||||
bindsym $mod+Shift+8 move container to workspace number 8
|
bindsym $mod+Shift+8 move container to workspace number 8
|
||||||
bindsym $mod+Shift+9 move container to workspace number 9
|
bindsym $mod+Shift+9 move container to workspace number 9
|
||||||
bindsym $mod+Shift+0 move container to workspace number 10
|
|
||||||
|
|
||||||
# Note: workspaces can have any name you want, not just numbers.
|
# Note: workspaces can have any name you want, not just numbers.
|
||||||
# We just use 1-10 as the default.
|
# We just use 1-10 as the default.
|
||||||
|
|
@ -141,6 +144,8 @@ client.urgent #ff0000 #000000 #ffffff #ff0000 #ff0000
|
||||||
# Make the current focus fullscreen
|
# Make the current focus fullscreen
|
||||||
bindsym $mod+f fullscreen
|
bindsym $mod+f fullscreen
|
||||||
|
|
||||||
|
bindsym Print exec 'hyprshot -m region -o /home/coast/Pictures/Screenshots/'
|
||||||
|
|
||||||
# Toggle the current focus between tiling and floating mode
|
# Toggle the current focus between tiling and floating mode
|
||||||
bindsym $mod+space floating toggle
|
bindsym $mod+space floating toggle
|
||||||
|
|
||||||
|
|
@ -149,6 +154,8 @@ client.urgent #ff0000 #000000 #ffffff #ff0000 #ff0000
|
||||||
|
|
||||||
# Move focus to the parent container
|
# Move focus to the parent container
|
||||||
bindsym $mod+a focus parent
|
bindsym $mod+a focus parent
|
||||||
|
|
||||||
|
bindsym $mod+Shift+u exec 'pkill waybar; waybar &'
|
||||||
#
|
#
|
||||||
# Scratchpad:
|
# Scratchpad:
|
||||||
#
|
#
|
||||||
|
|
@ -175,10 +182,10 @@ mode "resize" {
|
||||||
bindsym $right resize grow width 10px
|
bindsym $right resize grow width 10px
|
||||||
|
|
||||||
# Ditto, with arrow keys
|
# Ditto, with arrow keys
|
||||||
bindsym Left resize shrink width 10px
|
bindsym Right resize shrink width 10px
|
||||||
bindsym Down resize grow height 10px
|
bindsym Up resize grow height 10px
|
||||||
bindsym Up resize shrink height 10px
|
bindsym Down resize shrink height 10px
|
||||||
bindsym Right resize grow width 10px
|
bindsym Left resize grow width 10px
|
||||||
|
|
||||||
# Return to default mode
|
# Return to default mode
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
|
|
@ -186,11 +193,6 @@ mode "resize" {
|
||||||
}
|
}
|
||||||
bindsym $mod+Shift+d mode "resize"
|
bindsym $mod+Shift+d mode "resize"
|
||||||
|
|
||||||
#launch apps
|
|
||||||
bindsym $mod+Shift+p exec spotify
|
|
||||||
bindsym $mod+Shift+b exec firefox
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Utilities:
|
# Utilities:
|
||||||
#
|
#
|
||||||
|
|
@ -203,13 +205,30 @@ bindsym $mod+Shift+b exec firefox
|
||||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
|
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
|
||||||
# Special key to take a screenshot with grim
|
# Special key to take a screenshot with grim
|
||||||
bindsym Print exec screenie-wl
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Status Bar:
|
# Status Bar:
|
||||||
#
|
#
|
||||||
# Read `man 5 sway-bar` for more information about this section.
|
# Read `man 5 sway-bar` for more information about this section.
|
||||||
|
|
||||||
|
bar {
|
||||||
|
position top
|
||||||
|
font pango:Ubuntu 12
|
||||||
|
|
||||||
|
status_command while date +'%I:%M %p'; do sleep 1; done
|
||||||
|
status_command while $HOME/.local/bin/sway-status; do sleep 1; done
|
||||||
|
|
||||||
|
tray_output primary
|
||||||
|
|
||||||
|
colors {
|
||||||
|
statusline #ffffff
|
||||||
|
background #1c1c1c
|
||||||
|
inactive_workspace #1c1c1c #1c1c1c #aaaaaa
|
||||||
|
focused_workspace #2d2d2d #262626 #ffffff
|
||||||
|
urgent_workspace #aa0000 #ff0000 #ffffff
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
for_window [app_id="foot"] opacity 0.9
|
for_window [app_id="foot"] opacity 0.9
|
||||||
|
|
||||||
|
|
|
||||||
BIN
local/bin/htop
BIN
local/bin/htop
Binary file not shown.
|
|
@ -1,21 +1,35 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env bash
|
||||||
import os
|
|
||||||
import sys
|
batteries=(/sys/class/power_supply/BAT*)
|
||||||
import glob
|
# Check if any battery directories exist
|
||||||
batteries = glob.glob('/sys/class/power_supply/BAT*')
|
found=false
|
||||||
if not any(os.path.isdir(b) for b in batteries):
|
for b in "${batteries[@]}"; do
|
||||||
print("None")
|
if [ -d "$b" ]; then
|
||||||
sys.exit(1)
|
found=true
|
||||||
first = True
|
break
|
||||||
for battery in glob.glob('/sys/class/power_supply/BAT?*'):
|
fi
|
||||||
try:
|
done
|
||||||
with open(os.path.join(battery, "capacity")) as f:
|
|
||||||
capacity = int(f.read().strip())
|
if [ "$found" = false ]; then
|
||||||
except Exception:
|
echo "None"
|
||||||
capacity = 0
|
exit 1
|
||||||
if not first:
|
fi
|
||||||
print(" ", end="")
|
|
||||||
print(f"{capacity}%", end="")
|
first=true
|
||||||
first = False
|
for battery in /sys/class/power_supply/BAT*; do
|
||||||
|
if [ -d "$battery" ]; then
|
||||||
|
if [ -r "$battery/capacity" ]; then
|
||||||
|
capacity=$(<"$battery/capacity")
|
||||||
|
else
|
||||||
|
capacity=0
|
||||||
|
fi
|
||||||
|
if [ "$first" = true ]; then
|
||||||
|
echo -n "${capacity}%"
|
||||||
|
first=false
|
||||||
|
else
|
||||||
|
echo -n " ${capacity}%"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
|
||||||
print()
|
|
||||||
|
|
|
||||||
35
local/bin/sway-status
Executable file
35
local/bin/sway-status
Executable file
|
|
@ -0,0 +1,35 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Date
|
||||||
|
date=$(date "+%I:%M %p")
|
||||||
|
|
||||||
|
# CPU temp
|
||||||
|
cpu=$(sensors | grep "Package" | cut -f 1-3,5 -d " ")
|
||||||
|
|
||||||
|
# Alsa master volume
|
||||||
|
volume=$(amixer get Master | grep "Right:" | cut -f 7,8 -d " ")
|
||||||
|
|
||||||
|
# Battery percentage
|
||||||
|
batt=""
|
||||||
|
for b in /sys/class/power_supply/BAT*; do
|
||||||
|
if [ -d "$b" ]; then
|
||||||
|
if [ -r "$b/capacity" ]; then
|
||||||
|
cap=$(<"$b/capacity")
|
||||||
|
else
|
||||||
|
cap=0
|
||||||
|
fi
|
||||||
|
if [ -z "$batt" ]; then
|
||||||
|
batt="${cap}%"
|
||||||
|
else
|
||||||
|
batt="$batt ${cap}%"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
# If no battery found
|
||||||
|
if [ -z "$batt" ]; then
|
||||||
|
batt="None"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Status bar
|
||||||
|
echo "BAT: $batt | $date"
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue