fixed some i3 config and zshrc bluetooth alias

This commit is contained in:
2025-11-06 01:24:06 +01:00
parent 764b3a7f53
commit 2277906fdc
7 changed files with 180 additions and 68 deletions
Executable → Regular
+71 -37
View File
@@ -1,13 +1,10 @@
set $mod Mod4
#font pango:monospace 8
#font pango:DejaVu Sans Mono 8
#font pango:JetBrains Mono 8
# Set i3 font
font pango:MesloLGL Nerd Font Mono 8
# Start basic functionality apps
exec --no-startup-id dex --autostart --environment i3
#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id nm-applet
exec --no-startup-id xautolock -time 30 -locker "/home/agres/.config/i3/scripts/lock.sh"
@@ -20,8 +17,6 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
bindsym --release $mod+Shift+S exec --no-startup-id sh -c '/home/agres/.config/i3/scripts/focused-monitor.sh | xclip -selection clipboard -t image/png'
bindsym --release $mod+Shift+Ctrl+S exec --no-startup-id sh -c '/home/agres/.config/i3/scripts/focused-monitor.sh ~/pictures/$(date +%Y-%m-%d_%H-%M-%S).png'
floating_modifier $mod
tiling_drag modifier titlebar
@@ -32,10 +27,10 @@ bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id rofi -show run -theme solarized
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+h focus left
bindsym $mod+Left focus left
bindsym $mod+Down focus down
@@ -43,10 +38,10 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
bindsym $mod+Shift+h move left
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
@@ -54,8 +49,7 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
bindsym $mod+b split h
# split in vertical orientation
bindsym $mod+v split v
@@ -63,8 +57,8 @@ bindsym $mod+v split v
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
#bindsym $mod+s layout stacking
#bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
@@ -74,21 +68,20 @@ bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
#bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws1 "1:Code"
set $ws2 "2:Term"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws5 "5:Web"
set $ws6 "6:Mail"
set $ws7 "7:Music"
set $ws8 "8:Chat"
set $ws9 "9"
set $ws10 "10"
@@ -147,16 +140,56 @@ mode "resize" {
bindsym $mod+r mode "resize"
gaps inner 5
#gaps outer 2
gaps inner 3
gaps outer 0
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
# Separate bars for dual screen setup
bar {
status_command i3blocks
position top
output DisplayPort-0
status_command i3blocks
position top
tray_output none
workspace_buttons yes
colors {
background #000000
statusline #ffffff
separator #333333
focused_workspace #00675a #00675a #ffffff
active_workspace #1c1c1c #1c1c1c #cccccc
inactive_workspace #000000 #000000 #777777
urgent_workspace #870000 #870000 #ffffff
}
}
bar {
output HDMI-A-0
status_command i3blocks
position top
tray_output none
workspace_buttons yes
colors {
background #000000
statusline #ffffff
separator #333333
focused_workspace #00675a #00675a #ffffff
active_workspace #1c1c1c #1c1c1c #cccccc
inactive_workspace #000000 #000000 #777777
urgent_workspace #870000 #870000 #ffffff
}
}
# Hard defined workspace placement
workspace 1 output DisplayPort-0
workspace 2 output DisplayPort-0
workspace 3 output DisplayPort-0
workspace 4 output DisplayPort-0
workspace 5 output HDMI-A-0
workspace 6 output HDMI-A-0
workspace 7 output HDMI-A-0
workspace 8 output HDMI-A-1
# Load Xresources file
exec --no-startup-id xrdb -merge ~/.Xresources
# Keyboard to German
@@ -172,8 +205,9 @@ exec --no-startup-id xset s 7200 7200
exec --no-startup-id xset dpms 7200 7200 7200
# Window overlay theme
client.focused #00b5af #00b5af #fdf6e3 #073642
client.focused_inactive #073642 #073642 #fdf6e3 #073642
client.unfocused #073642 #073642 #fdf6e3 #073642
client.focused #00b894 #00675a #ffffff #00b894 #00675a
client.focused_inactive #303030 #1c1c1c #cccccc #303030 #1c1c1c
client.unfocused #1c1c1c #000000 #999999 #1c1c1c #000000
client.urgent #ff5f5f #870000 #ffffff #ff5f5f #870000
client.placeholder #000000 #000000 #ffffff #000000 #000000
+8 -4
View File
@@ -1,8 +1,12 @@
#!/bin/bash
# ~/.config/i3/scripts/gpu_usage.sh
if [ -f /sys/module/amdgpu/drivers/pci:amdgpu/0000:2b:00.0/gpu_busy_percent ]; then
usage=$(awk '{print $1}' /sys/module/amdgpu/drivers/pci:amdgpu/0000:2b:00.0/gpu_busy_percent)
echo "${usage}%"
if command -v rocm-smi &>/dev/null; then
output=$(rocm-smi --showtemp --showuse)
temp=$(echo "$output" | awk -F': ' '/Sensor edge/ {print $3; exit}')
usage=$(echo "$output" | awk -F': ' '/GPU use/ {print $3; exit}')
echo "${usage}% ${temp}°C"
else
echo "N/A"
echo "N/A"
fi
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
KBD_PATH="/org/freedesktop/UPower/devices/keyboard_dev_D7_E8_29_FA_0F_CF"
KBD_PATH="/org/freedesktop/UPower/devices/keyboard_dev_D7_E8_29_FA_0F_D0"
if upower -i "$KBD_PATH" 2>/dev/null | grep -q "present:.*yes"; then
perc=$(upower -i "$KBD_PATH" | awk '/percentage:/ {print $2}')