Compare commits
7 Commits
a6d5087749
...
9abac74ab4
Author | SHA1 | Date |
---|---|---|
Pavle Portic | 9abac74ab4 | |
Pavle Portic | f99a35f9fc | |
Pavle Portic | 4fa6d591dd | |
Pavle Portic | 80ed9d2a76 | |
Pavle Portic | 62a6ea06fa | |
Pavle Portic | 2cf87dcac5 | |
Pavle Portic | 905116cb8c |
|
@ -20,3 +20,6 @@ dynamic_title = true
|
||||||
[window.class]
|
[window.class]
|
||||||
general = "Alacritty"
|
general = "Alacritty"
|
||||||
instance = "Alacritty"
|
instance = "Alacritty"
|
||||||
|
|
||||||
|
[selection]
|
||||||
|
semantic_escape_chars = ",│`|\"' ()[]{}<>\t"
|
||||||
|
|
|
@ -6,8 +6,8 @@ theme=gruvbox-powerline
|
||||||
[module-parameters]
|
[module-parameters]
|
||||||
workspacewheel=False
|
workspacewheel=False
|
||||||
traffic.hide_down=True
|
traffic.hide_down=True
|
||||||
traffic.exclude=lo,virbr,docker,vboxnet,veth,br-,cni,flannel,podman,tun,wg,tailscale,wt
|
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
|
nic.exclude=lo,virbr,docker,vboxnet,veth,br-,cni,flannel,podman,waydroid
|
||||||
nic.states=^down
|
nic.states=^down
|
||||||
cpu2.layout=cpu2.coresload
|
cpu2.layout=cpu2.coresload
|
||||||
cpu2.colored=1
|
cpu2.colored=1
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
gtk-theme-name=Breeze-Dark
|
gtk-theme-name=Breeze-Dark
|
||||||
gtk-icon-theme-name=breeze-dark
|
gtk-icon-theme-name=breeze-dark
|
||||||
gtk-font-name=Noto Sans 11
|
gtk-font-name=Noto Sans 11
|
||||||
gtk-cursor-theme-name=Breeze_Snow
|
gtk-cursor-theme-name=Breeze_Light
|
||||||
gtk-cursor-theme-size=0
|
gtk-cursor-theme-size=0
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
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-antialias=1
|
||||||
gtk-xft-hinting=1
|
gtk-xft-hinting=1
|
||||||
gtk-xft-hintstyle=hintfull
|
gtk-xft-hintstyle=hintfull
|
||||||
|
gtk-xft-rgba=bgr
|
||||||
|
|
|
@ -154,6 +154,7 @@ lspconfig.yamlls.setup({})
|
||||||
lspconfig.ccls.setup({
|
lspconfig.ccls.setup({
|
||||||
init_options = {
|
init_options = {
|
||||||
compilationDatabaseDirectory = "build",
|
compilationDatabaseDirectory = "build",
|
||||||
|
-- compilationDatabaseDirectory = ".",
|
||||||
index = {
|
index = {
|
||||||
threads = 0,
|
threads = 0,
|
||||||
},
|
},
|
||||||
|
@ -162,6 +163,7 @@ lspconfig.ccls.setup({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Customize keymaps
|
-- Customize keymaps
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
gtk-theme-name=Breeze-Dark
|
gtk-theme-name=Breeze-Dark
|
||||||
gtk-icon-theme-name=breeze-dark
|
gtk-icon-theme-name=breeze-dark
|
||||||
gtk-font-name=Noto Sans 11
|
gtk-font-name=Noto Sans 11
|
||||||
gtk-cursor-theme-name=Breeze_Snow
|
gtk-cursor-theme-name=Breeze_Light
|
||||||
gtk-cursor-theme-size=0
|
gtk-cursor-theme-size=0
|
||||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
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-antialias=1
|
||||||
gtk-xft-hinting=1
|
gtk-xft-hinting=1
|
||||||
gtk-xft-hintstyle=hintfull
|
gtk-xft-hintstyle=hintfull
|
||||||
|
gtk-xft-rgba=bgr
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
configuration {
|
configuration {
|
||||||
modi: "drun,ssh,emoji";
|
modi: "drun,ssh";
|
||||||
fixed-num-lines: true;
|
fixed-num-lines: true;
|
||||||
font: "MonoFont {{ .rofi.font.size }}";
|
font: "MonoFont {{ .rofi.font.size }}";
|
||||||
location: 0;
|
location: 0;
|
||||||
|
|
|
@ -58,6 +58,7 @@ WINDOW_ICONS: dict[str, str] = {
|
||||||
'feh': nf.icons['md_image'],
|
'feh': nf.icons['md_image'],
|
||||||
'firefox': nf.icons['fa_firefox'],
|
'firefox': nf.icons['fa_firefox'],
|
||||||
'firefoxdeveloperedition': nf.icons['fa_firefox'],
|
'firefoxdeveloperedition': nf.icons['fa_firefox'],
|
||||||
|
'gamescope': nf.icons['md_steam'],
|
||||||
'ghb': nf.icons['md_video'],
|
'ghb': nf.icons['md_video'],
|
||||||
'gimp': nf.icons['fa_paint_brush'],
|
'gimp': nf.icons['fa_paint_brush'],
|
||||||
'gimp-2.10': 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'],
|
'obs': nf.icons['md_video'],
|
||||||
'openlens': nf.icons['md_kubernetes'],
|
'openlens': nf.icons['md_kubernetes'],
|
||||||
'org.gnome.nautilus': nf.icons['fa_folder'],
|
'org.gnome.nautilus': nf.icons['fa_folder'],
|
||||||
|
'oversteer': nf.icons['md_gamepad_variant'],
|
||||||
'pavucontrol': nf.icons['fa_volume_up'],
|
'pavucontrol': nf.icons['fa_volume_up'],
|
||||||
'picard': nf.icons['fa_music'],
|
'picard': nf.icons['fa_music'],
|
||||||
'qbittorrent': nf.icons['fa_download'],
|
'qbittorrent': nf.icons['fa_download'],
|
||||||
|
@ -95,6 +97,9 @@ WINDOW_ICONS: dict[str, str] = {
|
||||||
'steam': nf.icons['md_steam'],
|
'steam': nf.icons['md_steam'],
|
||||||
'steam_app_671860': nf.icons['md_pistol'], # battlebit
|
'steam_app_671860': nf.icons['md_pistol'], # battlebit
|
||||||
'steam_app_1336490': nf.icons['fae_storm'], # against the storm
|
'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'],
|
'surviving mars': nf.icons['fa_rocket'],
|
||||||
'telegram-desktop': nf.icons['fa_telegram'],
|
'telegram-desktop': nf.icons['fa_telegram'],
|
||||||
'terraria.bin.x86_64': nf.icons['fa_tree'],
|
'terraria.bin.x86_64': nf.icons['fa_tree'],
|
||||||
|
@ -107,6 +112,7 @@ WINDOW_ICONS: dict[str, str] = {
|
||||||
'zenity': nf.icons['fa_window_maximize'],
|
'zenity': nf.icons['fa_window_maximize'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# This icon is used for any application not in the list above
|
# This icon is used for any application not in the list above
|
||||||
DEFAULT_ICON = '*'
|
DEFAULT_ICON = '*'
|
||||||
|
|
||||||
|
@ -186,6 +192,7 @@ def rename_workspaces(i3) -> None:
|
||||||
icons = [
|
icons = [
|
||||||
icon_for_window(w) for w in workspace.leaves()
|
icon_for_window(w) for w in workspace.leaves()
|
||||||
]
|
]
|
||||||
|
icons += [icon_for_window(w) for w in workspace.floating_nodes]
|
||||||
if num is None:
|
if num is None:
|
||||||
new_name = str(workspace.num)
|
new_name = str(workspace.num)
|
||||||
else:
|
else:
|
||||||
|
@ -198,6 +205,9 @@ def rename_workspaces(i3) -> None:
|
||||||
# called on exit to indicate that this script is no longer running.
|
# called on exit to indicate that this script is no longer running.
|
||||||
def undo_window_renaming(i3) -> None:
|
def undo_window_renaming(i3) -> None:
|
||||||
for workspace in i3.get_tree().workspaces():
|
for workspace in i3.get_tree().workspaces():
|
||||||
|
if workspace.num == -1:
|
||||||
|
continue
|
||||||
|
|
||||||
num = parse_workspace_number(workspace.name)
|
num = parse_workspace_number(workspace.name)
|
||||||
icons = None
|
icons = None
|
||||||
if num is None:
|
if num is None:
|
||||||
|
@ -219,6 +229,7 @@ def get_signal_handler(i3) -> Callable[[int, FrameType | None], Any]:
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
i3 = Connection()
|
i3 = Connection()
|
||||||
|
i3.get_tree()
|
||||||
|
|
||||||
# exit gracefully when ctrl+c is pressed
|
# exit gracefully when ctrl+c is pressed
|
||||||
for sig in [signal.SIGINT, signal.SIGTERM]:
|
for sig in [signal.SIGINT, signal.SIGTERM]:
|
||||||
|
|
|
@ -127,7 +127,7 @@ bindsym $mod+Return exec alacritty
|
||||||
# rofi bindings
|
# rofi bindings
|
||||||
bindsym $mod+space exec "rofi -show drun"
|
bindsym $mod+space exec "rofi -show drun"
|
||||||
bindsym $mod+BackSpace 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
|
# Screen locking
|
||||||
# exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -e -i ~/pictures/wallpapers/blue_screen.png -t --nofork
|
# exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -e -i ~/pictures/wallpapers/blue_screen.png -t --nofork
|
||||||
|
|
|
@ -66,7 +66,7 @@ fi
|
||||||
# sway on tty1
|
# sway on tty1
|
||||||
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then
|
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && [[ $(tty) = /dev/tty1 ]]; then
|
||||||
date=$(date +%Y-%m-%d-%H:%M:%S)
|
date=$(date +%Y-%m-%d-%H:%M:%S)
|
||||||
exec sway -d > ~/.local/share/sway-$date.log 2>&1
|
exec sway
|
||||||
fi
|
fi
|
||||||
# startx on tty2
|
# startx on tty2
|
||||||
[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec startx -- vt1
|
[[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty2 ]] && exec startx -- vt1
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
[Icon Theme]
|
[Icon Theme]
|
||||||
Name=Default
|
Name=Default
|
||||||
Comment=Default Cursor Theme
|
Comment=Default Cursor Theme
|
||||||
Inherits=Breeze_Snow
|
Inherits=Breeze_Light
|
||||||
|
|
Loading…
Reference in New Issue