Compare commits

...

7 Commits

10 changed files with 26 additions and 8 deletions

View File

@ -20,3 +20,6 @@ dynamic_title = true
[window.class]
general = "Alacritty"
instance = "Alacritty"
[selection]
semantic_escape_chars = ",│`|\"' ()[]{}<>\t"

View File

@ -6,8 +6,8 @@ theme=gruvbox-powerline
[module-parameters]
workspacewheel=False
traffic.hide_down=True
traffic.exclude=lo,virbr,docker,vboxnet,veth,br-,cni,flannel,podman,tun,wg,tailscale,wt
nic.exclude=lo,virbr,docker,vboxnet,veth,br-,cni,flannel,podman
traffic.exclude=lo,virbr,docker,vboxnet,veth,br-,cni,flannel,podman,tun,wg,tailscale,waydroid,wt
nic.exclude=lo,virbr,docker,vboxnet,veth,br-,cni,flannel,podman,waydroid
nic.states=^down
cpu2.layout=cpu2.coresload
cpu2.colored=1

View File

@ -2,7 +2,7 @@
gtk-theme-name=Breeze-Dark
gtk-icon-theme-name=breeze-dark
gtk-font-name=Noto Sans 11
gtk-cursor-theme-name=Breeze_Snow
gtk-cursor-theme-name=Breeze_Light
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
@ -13,3 +13,4 @@ gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=bgr

View File

@ -154,6 +154,7 @@ lspconfig.yamlls.setup({})
lspconfig.ccls.setup({
init_options = {
compilationDatabaseDirectory = "build",
-- compilationDatabaseDirectory = ".",
index = {
threads = 0,
},
@ -162,6 +163,7 @@ lspconfig.ccls.setup({
},
},
})
-- Customize keymaps
local cmp = require("cmp")
cmp.setup({

View File

@ -2,7 +2,7 @@
gtk-theme-name=Breeze-Dark
gtk-icon-theme-name=breeze-dark
gtk-font-name=Noto Sans 11
gtk-cursor-theme-name=Breeze_Snow
gtk-cursor-theme-name=Breeze_Light
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
@ -13,3 +13,4 @@ gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintfull
gtk-xft-rgba=bgr

View File

@ -1,5 +1,5 @@
configuration {
modi: "drun,ssh,emoji";
modi: "drun,ssh";
fixed-num-lines: true;
font: "MonoFont {{ .rofi.font.size }}";
location: 0;

View File

@ -58,6 +58,7 @@ WINDOW_ICONS: dict[str, str] = {
'feh': nf.icons['md_image'],
'firefox': nf.icons['fa_firefox'],
'firefoxdeveloperedition': nf.icons['fa_firefox'],
'gamescope': nf.icons['md_steam'],
'ghb': nf.icons['md_video'],
'gimp': nf.icons['fa_paint_brush'],
'gimp-2.10': nf.icons['fa_paint_brush'],
@ -83,6 +84,7 @@ WINDOW_ICONS: dict[str, str] = {
'obs': nf.icons['md_video'],
'openlens': nf.icons['md_kubernetes'],
'org.gnome.nautilus': nf.icons['fa_folder'],
'oversteer': nf.icons['md_gamepad_variant'],
'pavucontrol': nf.icons['fa_volume_up'],
'picard': nf.icons['fa_music'],
'qbittorrent': nf.icons['fa_download'],
@ -95,6 +97,9 @@ WINDOW_ICONS: dict[str, str] = {
'steam': nf.icons['md_steam'],
'steam_app_671860': nf.icons['md_pistol'], # battlebit
'steam_app_1336490': nf.icons['fae_storm'], # against the storm
'steam_app_599140': nf.icons['md_coffin'], # graveyard keeper
'steam_app_284160': nf.icons['md_car'], # beamng.drive
'steam_app_1250410': nf.icons['md_airplane'], # microsoft flight simulator
'surviving mars': nf.icons['fa_rocket'],
'telegram-desktop': nf.icons['fa_telegram'],
'terraria.bin.x86_64': nf.icons['fa_tree'],
@ -107,6 +112,7 @@ WINDOW_ICONS: dict[str, str] = {
'zenity': nf.icons['fa_window_maximize'],
}
# This icon is used for any application not in the list above
DEFAULT_ICON = '*'
@ -186,6 +192,7 @@ def rename_workspaces(i3) -> None:
icons = [
icon_for_window(w) for w in workspace.leaves()
]
icons += [icon_for_window(w) for w in workspace.floating_nodes]
if num is None:
new_name = str(workspace.num)
else:
@ -198,6 +205,9 @@ def rename_workspaces(i3) -> None:
# called on exit to indicate that this script is no longer running.
def undo_window_renaming(i3) -> None:
for workspace in i3.get_tree().workspaces():
if workspace.num == -1:
continue
num = parse_workspace_number(workspace.name)
icons = None
if num is None:
@ -219,6 +229,7 @@ def get_signal_handler(i3) -> Callable[[int, FrameType | None], Any]:
def main():
i3 = Connection()
i3.get_tree()
# exit gracefully when ctrl+c is pressed
for sig in [signal.SIGINT, signal.SIGTERM]:

View File

@ -127,7 +127,7 @@ bindsym $mod+Return exec alacritty
# rofi bindings
bindsym $mod+space exec "rofi -show drun"
bindsym $mod+BackSpace exec "rofi -show drun"
bindsym $mod+j exec "rofi -show emoji"
bindsym $mod+j exec "rofimoji"
# Screen locking
# exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -e -i ~/pictures/wallpapers/blue_screen.png -t --nofork

View File

@ -66,7 +66,7 @@ fi
# sway on tty1
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then
date=$(date +%Y-%m-%d-%H:%M:%S)
exec sway -d > ~/.local/share/sway-$date.log 2>&1
exec sway
fi
# startx on tty2
[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec startx -- vt1

View File

@ -2,4 +2,4 @@
[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=Breeze_Snow
Inherits=Breeze_Light