i3: update small things and alingn bar like on laptop

This commit is contained in:
Marco Thomas
2023-02-09 23:21:48 +01:00
parent 0fd7eea96d
commit 9d4e522bb3
3 changed files with 7 additions and 24 deletions

View File

@@ -35,6 +35,7 @@ exec --no-startup-id blueman-applet
# audio control
bindsym $mod+a exec --no-startup-id pavucontrol -t 1
for_window [class="Pavucontrol"] fullscreen enable
# jp input - fcitx5 fcitx5-configtool fcitx5-gtk4 fcitx5-qt fcitx5-mozc
exec --no-startup-id fcitx5
@@ -61,6 +62,7 @@ bindsym $mod+Shift+q kill
bindsym $mod+space exec --no-startup-id dmenu_run \
-m 0 \
-i \
-b \
-l 10 \
-p dmenu \
-fn SFMono-11 \
@@ -69,9 +71,6 @@ bindsym $mod+space exec --no-startup-id dmenu_run \
-sb "#93b259" \
-sf "#2f383e" \
# show all open windows
bindsym $mod+s exec --no-startup-id ~/.config/i3/i3-windows.sh
# screenshot
bindsym $mod+Shift+s exec --no-startup-id flameshot gui
@@ -147,7 +146,6 @@ default_border none
for_window [class="firefox"] move to workspace 10
for_window [class="discord"] move to workspace 10
for_window [class="Spotify"] move to workspace 10
for_window [class="Pavucontrol"] fullscreen enable
workspace 1 output DP-1
workspace 10 output DP-3

View File

@@ -1,16 +0,0 @@
#!/bin/bash
# Get IDs for all the open windows
# ids=$($HOME/.scripts/get-window-id.sh a)
ids=$(xprop -root |grep _NET_CLIENT_LIST_STACKING\(WINDOW\) |cut -d"#" -f2| tr -d " "|tr "," " ")
for id in $ids
do names="$names $(xprop -id $id| grep WM_CLASS |tr -d '" '|cut -d "=" -f2|awk -F "," '{print $NF}')($id)"
done
flags='-m 0 -i -l 10 -p window -fn SFMono-11 -nb #2f383e -nf #d3c6aa -sb #93b259 -sf #2f383e'
# Show Open window class names as a dmenu option
target=$(echo $names | tr " " "\n" | dmenu $flags | grep -Eo "\(.*\)" | tr -d "()" )
# switch to chosen window
i3-msg [id="$target"] focus

View File

@@ -5,9 +5,10 @@ general {
interval = 1
}
order += "tztime local"
tztime local {
format = " %a %-d.%b  %H:%M"
order += "read_file backlight"
order += "battery all"
order += "time"
time {
format = " %a %-d.%b %H:%M"
}