diff options
| author | schererleander <leander@leander-scherer.de> | 2024-03-11 17:12:20 +0100 |
|---|---|---|
| committer | schererleander <leander@leander-scherer.de> | 2024-03-11 17:12:20 +0100 |
| commit | b77a7d585cf6cf2420dd770e42ba5b1e08a4e12c (patch) | |
| tree | 1e609feaf2356f80ea95cc0f61fc2ecddc875f6b /.config | |
| parent | be73020a8d6d0beefdedf6f2c2c1ffa3cc8a82b6 (diff) | |
initial commit
Diffstat (limited to '.config')
| -rw-r--r-- | .config/install.sh | 8 | ||||
| -rw-r--r-- | .config/kanshi/config | 4 | ||||
| -rw-r--r-- | .config/labwc/autostart | 36 | ||||
| -rw-r--r-- | .config/labwc/environment | 70 | ||||
| -rw-r--r-- | .config/labwc/menu.xml | 80 | ||||
| -rw-r--r-- | .config/labwc/rc.xml | 45 | ||||
| -rw-r--r-- | .config/sfwbar/sfwbar.config | 111 | ||||
| -rwxr-xr-x | .config/walset.sh | 18 |
8 files changed, 372 insertions, 0 deletions
diff --git a/.config/install.sh b/.config/install.sh new file mode 100644 index 0000000..19f627d --- /dev/null +++ b/.config/install.sh @@ -0,0 +1,8 @@ +ln --symbolic ~/.cache/wal/gtkrc ~/.themes/FlatColor/gtk-2.0/gtkrc +ln --symbolic ~/.cache/wal/gtk.css ~/.themes/FlatColor/gtk-3.0/gtk.css +ln --symbolic ~/.cache/wal/gtk-3.20.css ~/.themes/FlatColor/gtk-3.20/gtk.css + +ln --symbolic ~/.cache/wal/themerc ~/.themes/Walbox/openbox-3/themerc + +ln --symbolic ~/.cache/wal/dunstrc ~/.config/dunst/dunstrc +ln --symbolic ~/.cache/wal/zathurarc ~/.config/zathura/zathurarc diff --git a/.config/kanshi/config b/.config/kanshi/config new file mode 100644 index 0000000..c250a43 --- /dev/null +++ b/.config/kanshi/config @@ -0,0 +1,4 @@ +profile { + output DP-1 mode 1920x1080@240 position 1920,0 + output HDMI-A-2 position 0,0 +} diff --git a/.config/labwc/autostart b/.config/labwc/autostart new file mode 100644 index 0000000..47255d8 --- /dev/null +++ b/.config/labwc/autostart @@ -0,0 +1,36 @@ +# Example autostart file + +# Set background color. +# swaybg -i ~/Pictures/*-1.png >/dev/null 2>&1 & + +swaybg -i ~/Pictures/*-1.png & + +# Configure output directives such as mode, position, scale and transform. +# Use wlr-randr to get your output names +# Example ~/.config/kanshi/config below: +# profile { +# output HDMI-A-1 position 1366,0 +# output eDP-1 position 0,0 +# } +kanshi >/dev/null 2>&1 & + +# Launch a panel such as yambar or waybar. +sfwbar >/dev/null 2>&1 & + +# Enable notifications. Typically GNOME/KDE application notifications go +# through the org.freedesktop.Notifications D-Bus API and require a client such +# as mako to function correctly. Thunderbird is an example of this. +dunst >/dev/null 2>&1 & + +# Lock screen after 5 minutes; turn off display after another 5 minutes. +# +# Note that in the context of idle system power management, it is *NOT* a good +# idea to turn off displays by 'disabling outputs' for example by +# `wlr-randr --output <whatever> --off` because this re-arranges views +# (since a837fef). Instead use a wlr-output-power-management client such as +# https://git.sr.ht/~leon_plickat/wlopm +swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'wlopm --off \*' \ + resume 'wlopm --on \*' \ + before-sleep 'swaylock -f -c 000000' >/dev/null 2>&1 & diff --git a/.config/labwc/environment b/.config/labwc/environment new file mode 100644 index 0000000..34e6843 --- /dev/null +++ b/.config/labwc/environment @@ -0,0 +1,70 @@ +## +## Example ~/.config/labwc/environment file. +## Uncomment lines starting with one '#' to suit your needs. +## + +## +## Use the XKB_DEFAULT_LAYOUT variable to set the keyboard layout. For example +## to start with Swedish keyboard layout set it to 'se'. If you are unsure what +## your country code is, refer to the layout section of: +## /usr/share/X11/xkb/rules/evdev.lst +## +## Multiple keyboard layouts can be set by comma-separating the country codes. +## If a variant layout is needed, the syntax is layout(variant) +## If multiple layouts are used, specify the toggle-keybind using +## XKB_DEFAULT_OPTIONS as show below. +## +## For further details, see xkeyboard-config(7) +## + +XKB_DEFAULT_LAYOUT=de +# XKB_DEFAULT_LAYOUT=se,us(intl) +# XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle +# XKB_DEFAULT_OPTIONS=grp:shift_caps_toggle + +## +## Force Mozilla software like Firefox and Thunderbird to use wayland backend. +## Firefox (>= v121) enables Wayland by default, but we include this note here +## for those on non-rolling distributions. +## + +# MOZ_ENABLE_WAYLAND=1 + +## +## Set cursor theme and size. Find system icons themes with: +## `find /usr/share/icons/ -type d -name "cursors"` +## + +# XCURSOR_THEME=breeze_cursors +# XCURSOR_THEME=capitaine-cursors +XCURSOR_SIZE=24 + +## +## Disable hardware cursors. Most users would not want to do this, but if you +## are experiencing issues with disappearing cursors, this might fix it. +## + +# WLR_NO_HARDWARE_CURSORS=1 + +## +## In order for labwc to work out of the box, the environment variable below +## is set to "1" by default to avoid menus with incorrect offset and blank +## windows with Java applications such as JetBrains and Intellij Idea. +## See https://github.com/swaywm/sway/issues/595 +## labwc will not override any already set environment variables, so if you for +## some reason do not want this, then just set it to "0" (not recommended, but +## mentioned here for completeness). +## + +# _JAVA_AWT_WM_NONREPARENTING=0 + +## +## This allows xdg-desktop-portal-wlr to function (e.g. for screen-recording). +## It is automatically set to "wlroots" by labwc though, so it is only +## includeded here for completeness. Again, labwc will not over-write an +## already set environment variable, so if you need it set to something else, +## then uncomment and adjust. +## + +XDG_CURRENT_DESKTOP=wlroots + diff --git a/.config/labwc/menu.xml b/.config/labwc/menu.xml new file mode 100644 index 0000000..b34711b --- /dev/null +++ b/.config/labwc/menu.xml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<openbox_menu> +<!-- Note: for localization support of menu items "client-menu" has to be removed here --> +<menu id="client-menu"> + <item label="Minimize"> + <action name="Iconify" /> + </item> + <item label="Maximize"> + <action name="ToggleMaximize" /> + </item> + <item label="Fullscreen"> + <action name="ToggleFullscreen" /> + </item> + <item label="Roll up/down"> + <action name="ToggleShade" /> + </item> + <item label="Decorations"> + <action name="ToggleDecorations" /> + </item> + <item label="Always on Top"> + <action name="ToggleAlwaysOnTop" /> + </item> + <!-- + Any menu with the id "workspaces" will be hidden + if there is only a single workspace available. + --> + <menu id="workspaces" label="Workspace"> + <item label="Move left"> + <action name="SendToDesktop" to="left" /> + </item> + <item label="Move right"> + <action name="SendToDesktop" to="right" /> + </item> + <separator /> + <item label="Always on Visible Workspace"> + <action name="ToggleOmnipresent" /> + </item> + </menu> + <item label="Close"> + <action name="Close" /> + </item> +</menu> + +<menu id="root-menu"> +</menu> + +<menu id="some-custom-menu"> +<menu id="custom-apps" label="Apps"> + <item label=" Firefox"><action name="Execute" command="firefox" /></item> + <item label=" Terminal"><action name="Execute" command="kitty" /></item> + <item label=" Files"><action name="Execute" command="pcmanfm" /></item> + <separator /> + <item label=" Neovim"><action name="Execute" command="kitty nvim" /></item> + <item label=" Zathura"><action name="Execute" command="zathura" /></item> +</menu> +<separator /> +<menu id="system-apps" label="system"> +<item label=" Theme"><action name="Execute" command="labwc-tweaks" /></item> +</menu> +<separator /> +<menu id="power-menu" label="Power" > + <item label=" Reboot"> + <action name="Execute" command="systemctl -i reboot" /> + </item> + <item label=" Poweroff"> + <action name="Execute" command="systemctl -i poweroff" /> + </item> + <item label=" Exit"> + <action name="Exit" /> + <prompt>yes</prompt> +</item> +</menu> + <separator /> + <item label=" Reconfigure"> + <action name="Reconfigure" /> + </item> +</menu> + +</openbox_menu> diff --git a/.config/labwc/rc.xml b/.config/labwc/rc.xml new file mode 100644 index 0000000..12a8931 --- /dev/null +++ b/.config/labwc/rc.xml @@ -0,0 +1,45 @@ +<?xml version="1.0"?> + +<!-- + This is a very simple config file with many options missing. For a complete + set of options with comments, see docs/rc.xml.all +--> + +<labwc_config> + <core> + <decoration>server</decoration> + <gap>0</gap> + <adaptiveSync>no</adaptiveSync> + <reuseOutputMode>yes</reuseOutputMode> + </core> + + <theme> + <name>Walbox</name> + <font name="Iosevka" size="10" /> + </theme> + + <keyboard> + <default /> + <!-- Use a different terminal emulator --> + <keybind key="W-Return"> + <action name="Execute" command="kitty" /> + </keybind> + <!-- + Remove a previously defined keybind + A shorter alternative is <keybind key="W-F4" /> + --> + <keybind key="W-F4"> + <action name="None" /> + </keybind> + </keyboard> + <mouse> + <default /> + <!-- Show a custom menu on desktop right click --> + <context name="Root"> + <mousebind button="Right" action="Press"> + <action name="ShowMenu" menu="some-custom-menu" /> + </mousebind> + </context> + </mouse> + +</labwc_config> diff --git a/.config/sfwbar/sfwbar.config b/.config/sfwbar/sfwbar.config new file mode 100644 index 0000000..82786b6 --- /dev/null +++ b/.config/sfwbar/sfwbar.config @@ -0,0 +1,111 @@ +# Override gtk theme +#theme = "adw-gtk3" +# Override gtk icon theme +#IconTheme = "Adwaita" + +# Display minimized windows on taskbars across all outputs +#DisownMinimized = true + +# Select terminal emulator to use +Set Term = "kitty" + +Function("SfwbarInit") { + SetLayer "bottom" +# SetBarSensor "1000" # Auto hide bar after x milliseconds +# SetBarSize "100%" + SetMirror "*" # show tasbar on all monitors +# SetExclusiveZone "auto" +} + +include("winops.widget") + +layout { +# css = "* { min-height: 28px }" + + include("startmenu.widget") + + taskbar { + style = "taskbar" # Css selector + rows = 1; # Number of rows for taskbar items + icons = true; # Display icons + labels = true; # Display titles + sort = false; # Manual sorting + action[3] = Menu "winops" # Context menu + title_width = 20 # Set max title width + } + + # Spacer + label { + css = "* { -GtkWidget-hexpand: true; }" + } + + tray { + rows = 1 + } + +# include("network-module.widget") +# include("alsa-module.widget") + include("pulse-module.widget") +# include("bluez.widget") + + grid { + css = "* { -GtkWidget-direction: right; padding-left: 4px; padding-right: 4px}" + label { + interval = 10000 + value = Time("%a %d %b, ") + } + label { +# css = "* { font: 12pt mono } " + interval = 10000 + value = Time("%H:%M") + } + } +} + +#CSS +#hidden { + -GtkWidget-visible: false; +} + +button { + min-height: 16px; + min-width: 16px; + border-radius: 0px; + -GtkWidget-hexpand: false; +} + +button#taskbar_normal image, +button#taskbar_normal image:hover, +button#taskbar_active image, +button#taskbar_inactive image { + padding-right: 4px; +} + +button#taskbar_active { + background-color: rgba(192, 191, 188, 1.0); +} + +#menu_item image { + padding-right: 4px; +} + +/* If icons look off-center in system tray adjust/remove padding here */ +button#tray_active, +button#tray_passive, +button#tray_attention { + padding-right: 2px; +} + +button#tray_active image, +button#tray_passive image, +button#tray_attention image { + -ScaleImage-symbolic: true; +} + +label { +# font: 9pt Sans; +} + +* { + -GtkWidget-vexpand: true; +} diff --git a/.config/walset.sh b/.config/walset.sh new file mode 100755 index 0000000..a111542 --- /dev/null +++ b/.config/walset.sh @@ -0,0 +1,18 @@ +if [ $# -lt 1 ]; then + echo "Please provide a wallpaper filename as an argument." + exit 1 +fi + +wallpaper="$1" + +function reload_gtk_theme() { + theme=$(gsettings get org.gnome.desktop.interface gtk-theme) + gsettings set org.gnome.desktop.interface gtk-theme '' + gsettings set org.gnome.desktop.interface gtk-theme $theme +} + +swaybg -i $wallpaper + +wal -i $wallpaper -n +labwc --reconfigure +reload_gtk_theme |
