diff options
Diffstat (limited to 'desktop')
| -rw-r--r-- | desktop/.bash_profile | 1 | ||||
| -rw-r--r-- | desktop/.bashrc | 31 | ||||
| -rw-r--r-- | desktop/.config/dunst/dunstrc | 500 | ||||
| -rw-r--r-- | desktop/.config/flameshot/flameshot.ini | 9 | ||||
| -rw-r--r-- | desktop/.config/hypr/hypridle.conf | 17 | ||||
| -rw-r--r-- | desktop/.config/hypr/hyprland.conf | 281 | ||||
| -rw-r--r-- | desktop/.config/hypr/hyprlock.conf | 30 | ||||
| -rw-r--r-- | desktop/.config/hypr/hyprpaper.conf | 9 | ||||
| -rwxr-xr-x | desktop/.config/hypr/scripts/equalize-windows.sh | 87 | ||||
| -rwxr-xr-x | desktop/.config/hypr/scripts/randomize-wallpapers.sh | 16 | ||||
| -rwxr-xr-x | desktop/.config/hypr/scripts/zoom.sh | 9 | ||||
| -rw-r--r-- | desktop/.config/ranger/rc.conf | 86 | ||||
| -rw-r--r-- | desktop/.config/swayosd/config.toml | 3 | ||||
| -rw-r--r-- | desktop/.config/swayosd/style.css | 24 | ||||
| -rw-r--r-- | desktop/.config/waybar/config.jsonc | 82 | ||||
| -rw-r--r-- | desktop/.config/waybar/style.css | 151 | ||||
| -rw-r--r-- | desktop/.config/wofi/config | 10 | ||||
| -rw-r--r-- | desktop/.config/wofi/style.css | 42 | ||||
| -rw-r--r-- | desktop/.gitconfig | 2 | ||||
| -rw-r--r-- | desktop/.wezterm.lua | 191 | ||||
| -rw-r--r-- | desktop/README.md | 3 | ||||
| -rw-r--r-- | desktop/root/etc/sddm.conf | 139 | ||||
| -rwxr-xr-x | desktop/startup-script | 4 |
23 files changed, 1705 insertions, 22 deletions
diff --git a/desktop/.bash_profile b/desktop/.bash_profile new file mode 100644 index 0000000..3f56aa0 --- /dev/null +++ b/desktop/.bash_profile @@ -0,0 +1 @@ +[[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/desktop/.bashrc b/desktop/.bashrc index fa796ee..175bb6d 100644 --- a/desktop/.bashrc +++ b/desktop/.bashrc @@ -6,24 +6,21 @@ PS1='\[\e[0;35m\][\u@\h \W]\$\[\e[0m\] ' alias vim='nvim' alias bashcfg='vim ~/.bashrc' +alias hyprcfg='vim ~/.config/hypr/hyprland.conf' alias die='shutdown -h 0' -alias protontricks='flatpak run com.github.Matoking.protontricks' -alias aghvpn='sudo openvpn ~/Downloads/VPN-AGH.2025.ovpn' -alias lobbycode='clip ~/.local/share/Steam/steamapps/common/PAYDAY\ 2/lobby_code' -alias livesplit='~/livesplit/LiveSplitOne' alias grepfind='sudo find / | grep' +alias rfm='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"' +alias lobbycode='clip ~/.local/share/Steam/steamapps/common/PAYDAY\ 2/lobby_code' + +# yaptide +alias yap='~/yap/start.sh' -vmplayer() { - sudo systemctl start vmware-networks.service - command vmplayer -} restart() { - konsole & - disown - exit + wezterm & + exit } clip() { - xclip -sel clip "$@" + wl-copy < "$@" } open(){ for file in "$@" @@ -47,12 +44,12 @@ resizeVideo() { } music() { if [[ $# == 0 ]]; then - command find /hdd/mosder/music -printf "\"%p\"\n" | grep .mp3 | xargs vlc + command find $HOME/music -printf "\"%p\"\n" | grep .mp3 | xargs vlc else if [[ $@ == list ]]; then - command ls -AldQ /hdd/mosder/music/*/ | grep -v ^downloadLinkFiles/$ | awk -F'"' '{print $2}' | awk -F'/' '{print $5}' + command ls -AldQ $HOME/music/*/ | grep -v ^downloadLinkFiles/$ | awk -F'"' '{print $2}' | awk -F'/' '{print $5}' elif [[ $@ == metal ]]; then - music alestorm dickinson dżem fighters ghost gloryhammer maiden kult lindemann littlev grubasa metallica nanowar powerwolf rammstein peppers sabaton samurai lawder accept/ sevenfold pestilence purple/ emigrate iggy asgard queen rainbow + music alestorm dickinson dżem fighters ghost gloryhammer maiden kult lindemann littlev grubasa metallica nanowar powerwolf rammstein peppers sabaton samurai lawder accept/ sevenfold pestilence purple/ emigrate iggy asgard queen/ rainbow else rx="\($1" for regexp in "${@:2}" @@ -60,7 +57,9 @@ music() { rx="$rx\|$regexp" done rx="$rx\)" - command find /hdd/mosder/music -printf "\"%p\"\n" | grep -i "$rx.*\.mp3\"$" | xargs vlc + command find $HOME/music -printf "\"%p\"\n" | grep -i "$rx.*\.mp3\"$" | xargs vlc fi fi } + +export PATH="$PATH:/home/mosder/.bin:/home/mosder/.local/bin" diff --git a/desktop/.config/dunst/dunstrc b/desktop/.config/dunst/dunstrc new file mode 100644 index 0000000..68b68ff --- /dev/null +++ b/desktop/.config/dunst/dunstrc @@ -0,0 +1,500 @@ +# See dunst(5) for all configuration options + +[global] + ### Display ### + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a window manager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern window managers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + follow = keyboard + + ### Geometry ### + + # The width of the window, excluding the frame. + # dynamic width from 0 to 300 + # width = (0, 300) + # constant width of 300 + width = (200, 350) + + # The height of a single notification, excluding the frame. + # dynamic height from 0 to 300 + height = (0, 150) + # constant height of 300 + # height = 300 + # NOTE: Dunst from version 1.11 and older don't support dynamic height + # and the given value is treated as the maximum height + + # Position the notification in the top right corner + origin = top-center + + # Offset from the origin + # NOTE: Dunst from version 1.11 and older use this alternative notation + # offset = 10x50 + offset = (0, 10) + + # Scale factor. It is auto-detected if value is 0. + scale = 0 + + # Maximum number of notification (0 means no limit) + notification_limit = 5 + + ### Progress bar ### + + # Turn on the progress bar. It appears when a progress hint is passed with + # for example dunstify -h int:value:12 + progress_bar = true + + # Set the progress bar height. This includes the frame, so make sure + # it's at least twice as big as the frame width. + progress_bar_height = 6 + + # Set the frame width of the progress bar + progress_bar_frame_width = 1 + + # Set the minimum width for the progress bar + progress_bar_min_width = 100 + + # Set the maximum width for the progress bar + progress_bar_max_width = 350 + + # Corner radius for the progress bar. 0 disables rounded corners. + progress_bar_corner_radius = 3 + + # Define which corners to round when drawing the progress bar. If progress_bar_corner_radius + # is set to 0 this option will be ignored. + progress_bar_corners = all + + # Corner radius for the icon image. + icon_corner_radius = 0 + + # Define which corners to round when drawing the icon image. If icon_corner_radius + # is set to 0 this option will be ignored. + icon_corners = all + + # Show how many messages are currently hidden (because of + # notification_limit). + indicate_hidden = yes + + # The transparency of the window. Range: [0; 100]. + # This option will only work if a compositing window manager is + # present (e.g. xcompmgr, compiz, etc.). (X11 only) + transparency = 0 + + # Draw a line of "separator_height" pixel height between two + # notifications. + # Set to 0 to disable. + # If gap_size is greater than 0, this setting will be ignored. + separator_height = 0 + + # Padding between text and separator. + padding = 5 + + # Horizontal padding. + horizontal_padding = 5 + + # Padding between text and icon. + text_icon_padding = 0 + + # Defines width in pixels of frame around the notification window. + # Set to 0 to disable. + frame_width = 2 + + # Defines color of the frame around the notification window. + frame_color = "#9b00bb" + + # Size of gap to display between notifications - requires a compositor. + # If value is greater than 0, separator_height will be ignored and a border + # of size frame_width will be drawn around each notification instead. + # Click events on gaps do not currently propagate to applications below. + gap_size = 3 + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort type. + # possible values are: + # * id: sort by id + # * urgency_ascending: sort by urgency (low then normal then critical) + # * urgency_descending: sort by urgency (critical then normal then low) + # * update: sort by update (most recent always at the top) + sort = update + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + # for longer than idle_threshold seconds. + # Set to 0 to disable. + # A client can set the 'transient' hint to bypass this. See the rules + # section for how to disable this if necessary + # idle_threshold = 120 + + ### Text ### + + font = Monospace 8 + + # The spacing between lines. If the height is smaller than the + # font height, it will get raised to the font height. + line_height = 0 + + # Possible values are: + # full: Allow a small subset of html markup in notifications: + # <b>bold</b> + # <i>italic</i> + # <s>strikethrough</s> + # <u>underline</u> + # + # For a complete reference see + # <https://docs.gtk.org/Pango/pango_markup.html>. + # + # strip: This setting is provided for compatibility with some broken + # clients that send markup even though it's not enabled on the + # server. Dunst will try to strip the markup but the parsing is + # simplistic so using this option outside of matching rules for + # specific applications *IS GREATLY DISCOURAGED*. + # + # no: Disable markup parsing, incoming notifications will be treated as + # plain text. Dunst will not advertise that it has the body-markup + # capability if this is set as a global setting. + # + # It's important to note that markup inside the format option will be parsed + # regardless of what this is set to. + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %c category + # %S stack_tag + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% literal % + # Markup is allowed + format = "<b><span color='#df0055'>%a</span></b>\n<b>%s%p</b>\n%b" + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = center + + # Vertical alignment of message text and icon. + # Possible values are "top", "center" and "bottom". + vertical_alignment = center + + # Show age of message if message is older than show_age_threshold + # seconds. + # Set to -1 to disable. + show_age_threshold = -1 + + # Specify where to make an ellipsis in long lines. + # Possible values are "start", "middle" and "end". + ellipsize = middle + + # Ignore newlines '\n' in notifications. + ignore_newline = no + + # Stack together notifications with the same content + stack_duplicates = true + + # Hide the count of stacked notifications with the same content + hide_duplicate_count = false + + # Display indicators for URLs (U) and actions (A). + show_indicators = yes + + ### Icons ### + + # Recursive icon lookup. You can set a single theme, instead of having to + # define all lookup paths. + enable_recursive_icon_lookup = true + + # Set icon theme (only used for recursive icon lookup) + icon_theme = Papirus-Dark + # You can also set multiple icon themes, with the leftmost one being used first. + # icon_theme = "Adwaita, breeze" + + # Align icons left/right/top/off + icon_position = left + + # Scale small icons up to this size, set to 0 to disable. Helpful + # for e.g. small files or high-dpi screens. In case of conflict, + # max_icon_size takes precedence over this. + min_icon_size = 32 + + # Scale larger icons down to this size, set to 0 to disable + max_icon_size = 64 + + # Paths to default icons (only necessary when not using recursive icon lookup) + icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + + ### History ### + + # Should a notification popped up from history be sticky or timeout + # as if it would normally do. + sticky_history = yes + + # Maximum amount of notifications kept in history + history_length = 20 + + ### Misc/Advanced ### + + # dmenu path. + dmenu = /usr/bin/dmenu -p dunst: + + # Browser for opening urls in context menu. + browser = /usr/bin/xdg-open + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + # Define the title of the windows spawned by dunst (X11 only) + title = Dunst + + # Define the class of the windows spawned by dunst (X11 only) + class = Dunst + + # Define the corner radius of the notification window + # in pixel size. If the radius is 0, you have no rounded + # corners. + # The radius will be automatically lowered if it exceeds half of the + # notification height to avoid clipping text and/or icons. + corner_radius = 5 + + # Define which corners to round when drawing the window. If the corner radius + # is set to 0 this option will be ignored. + # + # Comma-separated list of the corners. The accepted corner values are bottom-right, + # bottom-left, top-right, top-left, top, bottom, left, right or all. + corners = all + + # Ignore the dbus closeNotification message. + # Useful to enforce the timeout set by dunst configuration. Without this + # parameter, an application may close the notification sent before the + # user defined timeout. + ignore_dbusclose = false + + ### Wayland ### + # These settings are Wayland-specific. They have no effect when using X11 + + # Uncomment this if you want to let notifications appear under fullscreen + # applications (default: overlay) + # layer = top + + # Set this to true to use X11 output on Wayland. + force_xwayland = false + + ### Legacy + + # Use the Xinerama extension instead of RandR for multi-monitor support. + # This setting is provided for compatibility with older nVidia drivers that + # do not support RandR and using it on systems that support RandR is highly + # discouraged. + # + # By enabling this setting dunst will not be able to detect when a monitor + # is connected or disconnected which might break follow mode if the screen + # layout changes. + force_xinerama = false + + ### mouse + + # Defines list of actions for each mouse event + # Possible values are: + # * none: Don't do anything. + # * do_action: Invoke the action determined by the action_name rule. If there is no + # such action, open the context menu. + # * open_url: If the notification has exactly one url, open it. If there are multiple + # ones, open the context menu. + # * close_current: Close current notification. + # * remove_current: Remove current notification from history. + # * close_all: Close all notifications. + # * context: Open context menu for the notification. + # * context_all: Open context menu for all notifications. + # These values can be strung together for each mouse event, and + # will be executed in sequence. + mouse_left_click = close_current + mouse_middle_click = do_action, close_current + mouse_right_click = close_all + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] + # Calculate the dpi to use on a per-monitor basis. + # If this setting is enabled the Xft.dpi value will be ignored and instead + # dunst will attempt to calculate an appropriate dpi value for each monitor + # using the resolution and physical size. This might be useful in setups + # where there are multiple screens with very different dpi values. + per_monitor_dpi = false + + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#282C34" + foreground = "#888888" + highlight = "#df0055" + timeout = 10 + # Icon for notifications with low urgency + default_icon = dialog-information + +[urgency_normal] + background = "#282C34" + foreground = "#ffffff" + highlight = "#df0055" + timeout = 10 + override_pause_level = 30 + # Icon for notifications with normal urgency + default_icon = dialog-information + +[urgency_critical] + background = "#282C34" + foreground = "#ffffff" + highlight = "#df0055" + frame_color = "#ff0000" + timeout = 0 + override_pause_level = 60 + # Icon for notifications with critical urgency + default_icon = dialog-warning + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# +# Messages can be matched by +# appname (discouraged, see desktop_entry) +# body +# category +# desktop_entry +# icon +# match_transient +# msg_urgency +# stack_tag +# summary +# +# and you can override the +# background +# foreground +# format +# frame_color +# fullscreen +# new_icon +# set_stack_tag +# set_transient +# set_category +# timeout +# urgency +# icon_position +# skip_display +# history_ignore +# action_name +# word_wrap +# ellipsize +# alignment +# hide_text +# override_pause_level +# +# Shell-like globbing will get expanded. +# +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# +# You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level. +# This can be used to set partial pause modes, where more urgent notifications get through, but less urgent stay paused. To do that, you can override the following in the rules: +# override_pause_level = X + +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# Disable the transient hint so that idle_threshold cannot be bypassed from the +# client +#[transient_disable] +# match_transient = yes +# set_transient = no +# +# Make the handling of transient notifications more strict by making them not +# be placed in history. +#[transient_history_ignore] +# match_transient = yes +# history_ignore = yes + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# skip_display = true + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[skip-display] +# # This notification will not be displayed, but will be included in the history +# summary = "foobar" +# skip_display = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +#[stack-volumes] +# appname = "some_volume_notifiers" +# set_stack_tag = "volume" +# +# vim: ft=cfg diff --git a/desktop/.config/flameshot/flameshot.ini b/desktop/.config/flameshot/flameshot.ini new file mode 100644 index 0000000..b8f2fab --- /dev/null +++ b/desktop/.config/flameshot/flameshot.ini @@ -0,0 +1,9 @@ +[General] +contrastOpacity=188 +disabledGrimWarning=true +disabledTrayIcon=true +saveAsFileExtension=png +savePath=/home/mosder/screenshots +showStartupLaunchMessage=false +uiColor=#8f00ba +useGrimAdapter=true diff --git a/desktop/.config/hypr/hypridle.conf b/desktop/.config/hypr/hypridle.conf new file mode 100644 index 0000000..1210312 --- /dev/null +++ b/desktop/.config/hypr/hypridle.conf @@ -0,0 +1,17 @@ +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. + before_sleep_cmd = loginctl lock-session # lock before suspend. + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} + +# after 5 min, lock +listener { + timeout = 300 + on-timeout = loginctl lock-session +} + +# after 30 min, suspend +listener { + timeout = 1800 + on-timeout = systemctl suspend +} diff --git a/desktop/.config/hypr/hyprland.conf b/desktop/.config/hypr/hyprland.conf new file mode 100644 index 0000000..01d99ae --- /dev/null +++ b/desktop/.config/hypr/hyprland.conf @@ -0,0 +1,281 @@ +################# +### VARIABLES ### +################# + +# Files and locations +$SCRIPTS_DIR = $HOME/.config/hypr/scripts +$LOG_FILE = $HOME/.hypr.log + +# Used programs +$BROWSER = brave +$DISCORD = discord --enable-features=UseOzonePlatform --ozone-platform=wayland +$TERMINAL = wezterm +$EDITOR = nvim +$FILE_MANAGER = thunar +$MENU = wofi +$LOCKSCREEN = hyprlock +$STATUS_BAR = waybar +$WALLPAPER_MANAGER = hyprpaper +$IDLE_MANAGER = hypridle +$AUTOMOUNT = udiskie +$OSD = swayosd +$NOTIFICATION_DAEMON = dunst +$COLOR_PICKER = hyprpicker +$SCREENSHOT = flameshot +$STEAM = steam + +##################### +### ENV VARIABLES ### +##################### + +# Gtk - nwglook +env = GTK_THEME,catppuccin-mocha-mauve-standard+default + +# Qt - adwaita dark +env = QT_QPA_PLATFORM,wayland +env = QT_QPA_PLATFORMTHEME,qt5ct + +# Cursor +env = XCURSOR_THEME,rose-pine-cursor +env = XCURSOR_SIZE,24 +env = HYPRCURSOR_THEME,rose-pine-hyprcursor +env = HYPRCURSOR_SIZE,24 + +# Misc +env = EDITOR,$EDITOR +env = MAX_ZOOM,3 + +################ +### MONITORS ### +################ + +$MAIN_MONITOR = DP-1 +$SECOND_MONITOR = HDMI-A-1 + +monitor=$MAIN_MONITOR,2560x1440@144,0x0,1 +monitor=$SECOND_MONITOR,1920x1080@60,2560x360,1 + +################# +### AUTOSTART ### +################# + +# Utils +exec-once = systemctl --user start hyprpolkitagent +exec-once = $STATUS_BAR +exec-once = $SCREENSHOT +exec-once = $SCRIPTS_DIR/randomize-wallpapers.sh +exec-once = $WALLPAPER_MANAGER +exec-once = $IDLE_MANAGER +exec-once = $AUTOMOUNT +exec-once = $OSD-server + +# Programs +exec-once = [workspace 1 silent] $BROWSER +exec-once = [workspace 2 silent] $DISCORD +exec-once = [workspace 3 silent] $TERMINAL +exec-once = [workspace 5 silent] $STEAM + +# Use lockscreen as login +exec-once = $LOCKSCREEN + +################## +### CATEGORIES ### +################## + +general { + gaps_in = 1 + gaps_out = 1 + + col.active_border = rgb(df00ff) rgb(ff10f0) 45deg + col.inactive_border = rgba(595959aa) + + no_focus_fallback = true +} + +animations { + bezier = easeOutQuint, 0.23, 1, 0.32, 1 + bezier = easeInOutCubic, 0.65, 0.05, 0.36, 1 + bezier = linear, 0, 0, 1, 1 + bezier = almostLinear, 0.5, 0.5, 0.75, 1 + bezier = quick, 0.15, 0, 0.1, 1 + + animation = global, 1, 7.5, default + animation = border, 1, 4.04, easeOutQuint + animation = windows, 1, 3.59, easeOutQuint + animation = windowsIn, 1, 3.07, easeOutQuint, popin 87% + animation = windowsOut, 1, 1.11, linear, popin 87% + animation = fadeIn, 1, 1.29, almostLinear + animation = fadeOut, 1, 1.09, almostLinear + animation = fade, 1, 2.27, quick + animation = layers, 1, 2.85, easeOutQuint + animation = layersIn, 1, 3, easeOutQuint, fade + animation = layersOut, 1, 1.12, linear, fade + animation = fadeLayersIn, 1, 1.34, almostLinear + animation = fadeLayersOut, 1, 1.04, almostLinear + animation = workspaces, 1, 1.45, almostLinear, fade + animation = workspacesIn, 1, 0.9, almostLinear, fade + animation = workspacesOut, 1, 1.45, almostLinear, fade + animation = zoomFactor, 1, 5.25, quick +} + +input { + kb_layout = pl + + numlock_by_default = true + + repeat_rate = 40 + repeat_delay = 400 + + sensitivity = -0.2 + follow_mouse = 2 +} + +misc { + disable_hyprland_logo = true + + focus_on_activate = false + + middle_click_paste = false +} + +cursor { + zoom_rigid = true +} + +ecosystem:no_donation_nag = true + +dwindle { + pseudotile = true + + force_split = 2 + preserve_split = true +} + +############# +### BINDS ### +############# + +# General +bind = SUPER, Q, killactive, +bind = SUPER, V, togglesplit, +bind = SUPER, N, exec, dunstctl close-all +bind = SUPER, slash, exec, $LOCKSCREEN +bind = ALT, SPACE, exec, pkill $MENU || $MENU + +# Launch programs +bind = SUPER, T, exec, $TERMINAL +bind = SUPER, F, exec, $FILE_MANAGER +bind = SUPER, C, exec, $TERMINAL start -- $EDITOR +bind = SUPER, B, exec, $BROWSER +bind = SUPER, D, exec, $DISCORD +bind = SUPER, S, exec, $STEAM +bind = SUPER SHIFT, P, exec, $COLOR_PICKER -a +bind = SUPER SHIFT, M, exec, $SCRIPTS_DIR/zoom.sh + +# Take screenshots +bind = SUPER SHIFT, S, exec, $SCREENSHOT gui # Select region + +# Move focus +bind = ALT, Tab, cyclenext +bind = SUPER, left, movefocus, l +bind = SUPER, down, movefocus, d +bind = SUPER, up, movefocus, u +bind = SUPER, right, movefocus, r +bind = SUPER, H, movefocus, l +bind = SUPER, J, movefocus, d +bind = SUPER, K, movefocus, u +bind = SUPER, L, movefocus, r + +# Swap windows +bind = SUPER SHIFT, left, swapwindow, l +bind = SUPER SHIFT, down, swapwindow, d +bind = SUPER SHIFT, up, swapwindow, u +bind = SUPER SHIFT, right, swapwindow, r +bind = SUPER SHIFT, H, swapwindow, l +bind = SUPER SHIFT, J, swapwindow, d +bind = SUPER SHIFT, K, swapwindow, u +bind = SUPER SHIFT, L, swapwindow, r + +# Equalize windows +bind = SUPER ALT, H, exec, $SCRIPTS_DIR/equalize-windows.sh l +bind = SUPER ALT, V, exec, $SCRIPTS_DIR/equalize-windows.sh u + +# Resize windows manually +bind = SUPER, R, submap, resize +submap = resize +binde = , left, resizeactive, -10 0 +binde = , down, resizeactive, 0 10 +binde = , up, resizeactive, 0 -10 +binde = , right, resizeactive, 10 0 +binde = , H, resizeactive, -10 0 +binde = , J, resizeactive, 0 10 +binde = , K, resizeactive, 0 -10 +binde = , L, resizeactive, 10 0 +bind = , Escape, submap, reset +bind = , Return, submap, reset +bind = CTRL_L, C, submap, reset +bind = SUPER, R, submap, reset +submap = reset + +# Switch workspaces +bind = SUPER, 1, workspace, 1 +bind = SUPER, 2, workspace, 2 +bind = SUPER, 3, workspace, 3 +bind = SUPER, 4, workspace, 4 +bind = SUPER, 5, workspace, 5 +bind = SUPER, 6, workspace, 6 +bind = SUPER, 7, workspace, 7 +bind = SUPER, 8, workspace, 8 +bind = SUPER, 9, workspace, 9 +bind = SUPER, 0, workspace, 10 + +# Move active window to a workspace +bind = SUPER SHIFT, 1, movetoworkspace, 1 +bind = SUPER SHIFT, 2, movetoworkspace, 2 +bind = SUPER SHIFT, 3, movetoworkspace, 3 +bind = SUPER SHIFT, 4, movetoworkspace, 4 +bind = SUPER SHIFT, 5, movetoworkspace, 5 +bind = SUPER SHIFT, 6, movetoworkspace, 6 +bind = SUPER SHIFT, 7, movetoworkspace, 7 +bind = SUPER SHIFT, 8, movetoworkspace, 8 +bind = SUPER SHIFT, 9, movetoworkspace, 9 +bind = SUPER SHIFT, 0, movetoworkspace, 10 + +# Move current workspace to the other monitor +bind = SUPER, M, movecurrentworkspacetomonitor, +1 + +# Volume controls +bindel = ,XF86AudioRaiseVolume, exec, $OSD-client --output-volume raise --max-volume 95 +bindel = ,XF86AudioLowerVolume, exec, $OSD-client --output-volume lower +bindel = ,XF86AudioMute, exec, $OSD-client --output-volume mute-toggle +bindel = ,XF86AudioMicMute, exec, $OSD-client --input-volume mute-toggle + +# Player controls +bindl = , XF86AudioNext, exec, $OSD-client --playerctl next +bindl = , XF86AudioPause, exec, $OSD-client --playerctl play-pause +bindl = , XF86AudioPlay, exec, $OSD-client --playerctl play-pause +bindl = , XF86AudioPrev, exec, $OSD-client --playerctl previous + +############################## +### WINDOWS AND WORKSPACES ### +############################## + +# Set default monitors for workspaces +workspace = 1, monitor:$MAIN_MONITOR, default:true +workspace = 2, monitor:$SECOND_MONITOR, default:true +workspace = 3, monitor:$SECOND_MONITOR +workspace = 4, monitor:$MAIN_MONITOR +workspace = 5, monitor:$MAIN_MONITOR + +# Force discord to stay at 2nd workspace +windowrule = workspace 2 silent, class:^(discord)$ + +# Force steam to stay at 5th workspace +windowrule = workspace 5 silent, class:^(steam)$ + +# Make flameshot not temporarily resize windows +windowrule = float, class:^($SCREENSHOT)$ + +# Ignore maximize requests from apps +windowrule = suppressevent maximize, class:.* + diff --git a/desktop/.config/hypr/hyprlock.conf b/desktop/.config/hypr/hyprlock.conf new file mode 100644 index 0000000..68d61a2 --- /dev/null +++ b/desktop/.config/hypr/hyprlock.conf @@ -0,0 +1,30 @@ +general { + hide_cursor = true + ignore_empty_input = true +} + +animations { + animation = fade, 1, 3, linear +} + +background { + monitor = DP-1 + path = ~/wallpapers/2k/.current +} + +background { + monitor = HDMI-A-1 + path = ~/wallpapers/hd/.current +} + +input-field { + size = 10%, 3% + outline_thickness = 2 + dots_size = 0.35 + dots_spacing = 0.2 + outer_color = rgb(df00ff) + inner_color = rgb(232627) + font_color = rgb(f5f5f5) + rounding = 13 + placeholder_text = +} diff --git a/desktop/.config/hypr/hyprpaper.conf b/desktop/.config/hypr/hyprpaper.conf new file mode 100644 index 0000000..9ddeffb --- /dev/null +++ b/desktop/.config/hypr/hyprpaper.conf @@ -0,0 +1,9 @@ +$MAIN_MONITOR = DP-1 +$SECOND_MONITOR = HDMI-A-1 +$WALLPAPER_2K = $HOME/wallpapers/2k/.current +$WALLPAPER_HD = $HOME/wallpapers/hd/.current + +preload = $WALLPAPER_2K +preload = $WALLPAPER_HD +wallpaper = $MAIN_MONITOR,$WALLPAPER_2K +wallpaper = $SECOND_MONITOR,$WALLPAPER_HD diff --git a/desktop/.config/hypr/scripts/equalize-windows.sh b/desktop/.config/hypr/scripts/equalize-windows.sh new file mode 100755 index 0000000..cd43729 --- /dev/null +++ b/desktop/.config/hypr/scripts/equalize-windows.sh @@ -0,0 +1,87 @@ +#!/bin/bash + +ITERS=3 + +# get address of the window to return to +address=$(hyprctl activewindow | awk -F" " 'NR==1 {print $2}') + +# define move directions +dir1=$1 +dir2=r +if [[ $dir1 == u ]]; then + dir2=d +fi + +# move max to the left/top +prev_window="" +window=$(hyprctl activewindow | awk -F" " 'NR==1 {print $2}') +while [[ $window != $prev_window ]]; do + hyprctl dispatch movefocus $dir1 + prev_window=$window + window=$(hyprctl activewindow | awk -F" " 'NR==1 {print $2}') +done + +# get start location +at=$(hyprctl activewindow | awk -F" " 'NR==4 {print $2}') +if [[ $dir1 == l ]]; then + start_location=$(echo $at | awk -F"," '{print $1}') +else + start_location=$(echo $at | awk -F"," '{print $2}') +fi + +# count windows in the line +window_count=0 +prev_window="" +while [[ $window != $prev_window ]]; do + hyprctl dispatch movefocus $dir2 + prev_window=$window + window=$(hyprctl activewindow | awk -F" " 'NR==1 {print $2}') + window_count=$(($window_count+1)) +done + +# get end location +at=$(hyprctl activewindow | awk -F" " 'NR==4 {print $2}') +size=$(hyprctl activewindow | awk -F" " 'NR==5 {print $2}') +if [[ $dir1 == l ]]; then + at=$(echo $at | awk -F"," '{print $1}') + size=$(echo $size | awk -F"," '{print $1}') +else + at=$(echo $at | awk -F"," '{print $2}') + size=$(echo $size | awk -F"," '{print $2}') +fi +end_location=$(($at+$size)) + +# calculate full size and size per window +full_size=$(($end_location - $start_location)) +size_per_window=$(($full_size / $window_count)) + +# set sizes +i=0 +while [[ $i -lt $ITERS ]]; do + i=$(($i+1)) + window=0 + while [[ $window -lt $window_count ]]; do + window=$(($window+1)) + size=$(hyprctl activewindow | awk -F" " 'NR==5 {print $2}') + if [[ $dir1 == l ]]; then + #other_side=$(echo $size | awk -F"," '{print $2}') + #hyprctl dispatch resizeactive exact $size_per_window $other_side + size=$(echo $size | awk -F"," '{print $1}') + diff=$(($size_per_window - $size)) + hyprctl dispatch resizeactive $diff 0 + else + #other_side=$(echo $size | awk -F"," '{print $1}') + #hyprctl dispatch resizeactive exact $other_side $size_per_window + size=$(echo $size | awk -F"," '{print $2}') + diff=$(($size_per_window - $size)) + hyprctl dispatch resizeactive 0 $diff + fi + hyprctl dispatch movefocus $dir1 + done + temp=$dir1 + dir1=$dir2 + dir2=$temp +done + +# return to starting window +hyprctl dispatch focuswindow address:0x$address diff --git a/desktop/.config/hypr/scripts/randomize-wallpapers.sh b/desktop/.config/hypr/scripts/randomize-wallpapers.sh new file mode 100755 index 0000000..c7bd651 --- /dev/null +++ b/desktop/.config/hypr/scripts/randomize-wallpapers.sh @@ -0,0 +1,16 @@ +#!/usr/bin/bash + +WALLPAPER_DIR_2K="$HOME/wallpapers/2k" +WALLPAPER_DIR_HD="$HOME/wallpapers/hd" + +# Get random wallpapers +WALLPAPER_2K=$(find $WALLPAPER_DIR_2K -type f | shuf -n 1) +WALLPAPER_HD=$(find $WALLPAPER_DIR_HD -type f | shuf -n 1) + +# Create symlinks to new random wallpapers +SYMLINK_2K=$WALLPAPER_DIR_2K/.current +SYMLINK_HD=$WALLPAPER_DIR_HD/.current +rm $SYMLINK_2K +rm $SYMLINK_HD +ln -s $WALLPAPER_2K $SYMLINK_2K +ln -s $WALLPAPER_HD $SYMLINK_HD diff --git a/desktop/.config/hypr/scripts/zoom.sh b/desktop/.config/hypr/scripts/zoom.sh new file mode 100755 index 0000000..433f899 --- /dev/null +++ b/desktop/.config/hypr/scripts/zoom.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +ZOOM=$(hyprctl getoption cursor:zoom_factor | grep float | awk -F" " '{print $2}') +ZOOM=$(echo "scale=0; ($ZOOM+1)/1" | bc) +if [[ $ZOOM -gt $MAX_ZOOM ]]; then + ZOOM=1 +fi + +hyprctl -q keyword cursor:zoom_factor $ZOOM diff --git a/desktop/.config/ranger/rc.conf b/desktop/.config/ranger/rc.conf new file mode 100644 index 0000000..826d170 --- /dev/null +++ b/desktop/.config/ranger/rc.conf @@ -0,0 +1,86 @@ +# =================================================================== +# This file contains the default startup commands for ranger. +# To change them, it is recommended to create either /etc/ranger/rc.conf +# (system-wide) or ~/.config/ranger/rc.conf (per user) and add your custom +# commands there. +# +# If you copy this whole file there, you may want to set the environment +# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice. +# +# The purpose of this file is mainly to define keybindings and settings. +# For running more complex python code, please create a plugin in "plugins/" or +# a command in "commands.py". +# +# Each line is a command that will be run before the user interface +# is initialized. As a result, you can not use commands which rely +# on the UI such as :delete or :mark. +# =================================================================== + +# =================================================================== +# == Options +# =================================================================== + +# Show hidden files? You can toggle this by typing 'zh' +set show_hidden true + +# Use one of the supported image preview protocols +set preview_images true + +# Set the preview image method. Supported methods: +# +# * w3m (default): +# Preview images in full color with the external command "w3mimgpreview"? +# This requires the console web browser "w3m" and a supported terminal. +# It has been successfully tested with "xterm" and "urxvt" without tmux. +# +# * iterm2: +# Preview images in full color using iTerm2 image previews +# (http://iterm2.com/images.html). This requires using iTerm2 compiled +# with image preview support. +# +# This feature relies on the dimensions of the terminal's font. By default, a +# width of 8 and height of 11 are used. To use other values, set the options +# iterm2_font_width and iterm2_font_height to the desired values. +# +# * terminology: +# Previews images in full color in the terminology terminal emulator. +# Supports a wide variety of formats, even vector graphics like svg. +# +# * sixel: +# Previews images using the SIXEL protocol. This requires "imagemagick". +# +# * urxvt: +# Preview images in full color using urxvt image backgrounds. This +# requires using urxvt compiled with pixbuf support. +# +# * urxvt-full: +# The same as urxvt but utilizing not only the preview pane but the +# whole terminal window. +# +# * kitty: +# Preview images in full color using kitty image protocol. +# Requires python PIL or pillow library. +# If ranger does not share the local filesystem with kitty +# the transfer method is changed to encode the whole image; +# while slower, this allows remote previews, +# for example during an ssh session. +# Any terminal supporting the Kitty graphics protocol should work automatically. +# Note that the Kitty graphics protocol does not work from inside a tmux +# session, so tmux is unsupported. +# +# * ueberzug: +# Preview images in full color with the external command "ueberzug". +# Images are shown by using a child window. +# Only for users who run X11 in GNU/Linux. +set preview_images_method iterm2 + +# Ask for a confirmation when running the "delete" command? +# Valid values are "always", "never", "multiple" (default) +# With "multiple", ranger will ask only if you delete multiple files at once. +set confirm_on_delete never + +# Draw borders around columns? (separators, outline, both, or none) +# Separators are vertical lines between columns. +# Outline draws a box around all the columns. +# Both combines the two. +set draw_borders separators diff --git a/desktop/.config/swayosd/config.toml b/desktop/.config/swayosd/config.toml new file mode 100644 index 0000000..5c70f63 --- /dev/null +++ b/desktop/.config/swayosd/config.toml @@ -0,0 +1,3 @@ +[server] +top_margin = 0.93 +playerctl_format = "{title}" diff --git a/desktop/.config/swayosd/style.css b/desktop/.config/swayosd/style.css new file mode 100644 index 0000000..4fa0c4c --- /dev/null +++ b/desktop/.config/swayosd/style.css @@ -0,0 +1,24 @@ +window#osd { + border-radius: 5px; + border: 2px solid #9b00bb; + background: #282c34; +} + +window#osd #container { + margin: 5px; +} + +window#osd progressbar:disabled, +window#osd image:disabled { + opacity: 0.5; +} + +window#osd progressbar { + min-height: 6px; + border-radius: 5px; + color: #df0055; +} + +window#osd progress { + background: #df0055; +} diff --git a/desktop/.config/waybar/config.jsonc b/desktop/.config/waybar/config.jsonc new file mode 100644 index 0000000..cc3172e --- /dev/null +++ b/desktop/.config/waybar/config.jsonc @@ -0,0 +1,82 @@ +{ + "layer": "top", + "modules-left": ["hyprland/workspaces"], + "modules-center": ["hyprland/window"], + "modules-right": ["hyprland/language", "wireplumber", "backlight", "cpu", "memory", "network", "battery", "clock"], + "hyprland/workspaces": { + "format": "{id}{icon}", + "format-icons": { + "1": " ", + "2": " ", + "3": " ", + "4": " ", + "5": " ", + "default": "" + } + }, + "hyprland/window": { + "max-length": 50 + }, + "hyprland/language": { + "format": "{}", + "format-en": "EN", + "format-pl": "PL" + }, + "wireplumber": { + "format": "{volume}% {icon}", + "format-icons": ["", "", ""], + "format-muted": "{volume}% ", + "tooltip": false, + "max-volume": 95 + }, + "backlight": { + "format": "{percent}% {icon}", + "format-icons": ["", "", ""], + "tooltip": false + }, + "cpu": { + "format": "{usage}% ", + "interval": 3 + }, + "memory": { + "format": "{}% ", + "interval": 3, + "tooltip-format": "RAM: {percentage}%\nSwap: {swapPercentage}%" + }, + "network": { + "format": "{ifname}", + "format-wifi": "{essid} ({signalStrength}%) ", + "format-ethernet": "Ethernet ", + "format-disconnected": "Disconnected", + "max-length": 50, + "tooltip": false + }, + "battery": { + "format": "{capacity}% {icon}", + "format-icons": ["", "", "", "", ""], + "full-at": 99, + "states": { + "warning": 30, + "critical": 15 + }, + "tooltip": false + }, + "clock": { + "format": "{:%Y-%m-%d %H:%M (%Z)}", + "tooltip-format": "<b>{tz_list}</b><tt><small>{calendar}</small></tt>", + "timezones": [ + "Europe/Warsaw", + "Etc/UTC", + "America/New_York", + "America/Los_Angeles" + ], + "calendar": { + "format": { + "months": "<span color='#ffead3'><b>{}</b></span>", + "days": "<span color='#ecc6d9'><b>{}</b></span>", + "weekdays": "<span color='#ffcc66'><b>{}</b></span>", + "today": "<span color='#ff6699'><b>{}</b></span>" + } + } + } +} diff --git a/desktop/.config/waybar/style.css b/desktop/.config/waybar/style.css new file mode 100644 index 0000000..aeb8e52 --- /dev/null +++ b/desktop/.config/waybar/style.css @@ -0,0 +1,151 @@ +* { + font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; + font-size: 13px; +} + +window#waybar { + background-color: rgba(43, 48, 59, 0.5); + border-bottom: 3px solid rgba(100, 114, 125, 0.5); + color: #ffffff; + transition-property: background-color; + transition-duration: .5s; +} + +window#waybar.hidden { + opacity: 0.2; +} + +button { + /* Use box-shadow instead of border so the text isn't offset */ + box-shadow: inset 0 -3px transparent; + /* Avoid rounded borders under each button name */ + border: black; + border-radius: 0; +} + +/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */ +button:hover { + background: inherit; + box-shadow: inset 0 -3px #ffffff; +} + +#workspaces button { + padding: 0 5px; + background-color: transparent; + color: #ffffff; +} + +#workspaces button:hover { + background: rgba(0, 0, 0, 0.2); +} + +#workspaces button.active { + background-color: #64727D; + box-shadow: inset 0 -3px #ffffff; +} + +#workspaces button.urgent { + background-color: #eb4d4b; +} + +tooltip label { + padding: 0 0; +} + +#clock, +#battery, +#cpu, +#memory, +#backlight, +#network, +#wireplumber { + padding: 0 10px; + color: #ffffff; +} + +#window, +#workspaces { + margin: 0 4px; +} + +/* If workspaces is the leftmost module, omit left margin */ +.modules-left > widget:first-child > #workspaces { + margin-left: 0; +} + +#clock { + background-color: #64727D; +} + +#battery { + background-color: #ffffff; + color: #000000; +} + +#battery.charging, #battery.plugged { + color: #ffffff; + background-color: #26A65B; +} + +@keyframes blink { + to { + background-color: #ffffff; + color: #000000; + } +} + +#battery.warning:not(.charging) { + background-color: #ffac1c; + color: #ffffff; +} + +/* Using steps() instead of linear as a timing function to limit cpu usage */ +#battery.critical:not(.charging) { + background-color: #f53c3c; + color: #ffffff; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: steps(12); + animation-iteration-count: infinite; + animation-direction: alternate; +} + +label:focus { + background-color: #000000; +} + +#cpu { + background-color: #451c81; +} + +#memory { + background-color: #720f4f; +} + +#backlight { + background-color: #b0d1d1; + color: #000000; +} + +#network { + background-color: #2980b9; +} + +#network.disconnected { + background-color: #f53c3c; +} + +#wireplumber { + background-color: #fff0f5; + color: #000000; +} + +#wireplumber.muted { + background-color: #f53c3c; +} + +#language { + background: #00b093; + color: #740864; + padding: 0 5px; +} diff --git a/desktop/.config/wofi/config b/desktop/.config/wofi/config new file mode 100644 index 0000000..a671f43 --- /dev/null +++ b/desktop/.config/wofi/config @@ -0,0 +1,10 @@ +show=run +width=20% +height=25% +prompt= +term=konsole +hide_scroll=true +matching=fuzzy +insensitive=true +use_search_box=false +allow_images=true diff --git a/desktop/.config/wofi/style.css b/desktop/.config/wofi/style.css new file mode 100644 index 0000000..2833ce7 --- /dev/null +++ b/desktop/.config/wofi/style.css @@ -0,0 +1,42 @@ +window { + background-color: transparent; +} + +#input { + border: 2px solid #AAB1BE; + background-color: #4B5263; + color: #FFFFFF; + border-radius: 5px 5px 0 0; + caret-color: #BBB; +} + +#inner-box { + background-color: transparent; +} + +#outer-box { + background-color: #282C34; + border-radius: 5px; +} + +#scroll { + border: 2px solid #df00ff; + border-radius: 0 0 5px 5px; + padding: 2px; +} + +#text { + margin: 5px; + color: #E2C184; +} + +#text:selected { + color: white; +} + +#entry:selected { + background-color: transparent; + outline: none; + border: 1px dashed #60AEED; + border-radius: 5px; +} diff --git a/desktop/.gitconfig b/desktop/.gitconfig index fbb16bd..045dd9a 100644 --- a/desktop/.gitconfig +++ b/desktop/.gitconfig @@ -1,5 +1,3 @@ [user] email = xmosder12@gmail.com name = Mosder -[core] - editor = vim diff --git a/desktop/.wezterm.lua b/desktop/.wezterm.lua new file mode 100644 index 0000000..49de6d7 --- /dev/null +++ b/desktop/.wezterm.lua @@ -0,0 +1,191 @@ +local wezterm = require("wezterm")
+local cfg = wezterm.config_builder()
+
+-- Miscellaneous
+cfg.adjust_window_size_when_changing_font_size = false
+cfg.allow_square_glyphs_to_overflow_width = "Never"
+cfg.allow_win32_input_mode = false
+cfg.anti_alias_custom_block_glyphs = false
+cfg.audible_bell = "Disabled"
+cfg.font_size = 9
+cfg.scrollback_lines = 2137
+cfg.selection_word_boundary = " \t\n{}[]()'\"`.,;:"
+
+-- Unicode select menu
+cfg.char_select_bg_color = "#282c34"
+cfg.char_select_fg_color = "#eff1f5"
+cfg.char_select_font_size = 13
+cfg.warn_about_missing_glyphs = false
+
+-- Colors
+cfg.color_scheme = "Pro"
+cfg.colors = {
+ cursor_bg = "#fff",
+ cursor_fg = "#000",
+ cursor_border = "#999",
+}
+
+-- Tab bar
+cfg.hide_tab_bar_if_only_one_tab = true
+cfg.show_close_tab_button_in_tabs = false
+cfg.show_new_tab_button_in_tab_bar = false
+cfg.show_tab_index_in_tab_bar = false
+wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_width)
+ local title = tab.active_pane.title
+ local part_to_remove = "mosder@archpc:"
+ return string.gsub(title, part_to_remove, "")
+end)
+
+-- Window
+cfg.window_background_opacity = 0.95
+cfg.window_frame = {
+ -- Would love to set alpha of both of these to 0.9, but it incorrectly applies
+ -- to the area above the tabs themselves, so it's 1 for now
+ active_titlebar_bg = "rgba(40,44,52,1)",
+ inactive_titlebar_bg = "rgba(40,44,52,1)",
+ font_size = 11,
+}
+cfg.window_padding = {
+ left = 5,
+ right = 5,
+ top = 2,
+ bottom = 2,
+}
+
+-- Key bindings
+local act = wezterm.action
+cfg.disable_default_key_bindings = true
+cfg.keys = {
+ -- Delete last word (Remap ALT+Backspace to CTRL+Backspace)
+ {
+ mods = "CTRL",
+ key = "Backspace",
+ action = act.SendKey({ mods = "ALT", key = "Backspace" }),
+ },
+ -- Copy mode
+ {
+ mods = "CTRL|SHIFT",
+ key = "X",
+ action = act.ActivateCopyMode,
+ },
+ -- Change tabs - relative
+ {
+ mods = "CTRL",
+ key = "Tab",
+ action = act.ActivateTabRelative(1),
+ },
+ {
+ mods = "CTRL|SHIFT",
+ key = "Tab",
+ action = act.ActivateTabRelative(-1),
+ },
+ -- Unicode menu
+ {
+ mods = "CTRL",
+ key = "u",
+ action = act.CharSelect,
+ },
+ -- Close current tab
+ {
+ mods = "CTRL",
+ key = "w",
+ action = act.CloseCurrentTab({ confirm = true }),
+ },
+ {
+ mods = "CTRL",
+ key = "q",
+ action = act.CloseCurrentTab({ confirm = true }),
+ },
+ -- Copy selection to clipboard
+ {
+ mods = "CTRL|SHIFT",
+ key = "c",
+ action = act.CopyTo("Clipboard"),
+ },
+ -- Decrease font size
+ {
+ mods = "CTRL",
+ key = "-",
+ action = act.DecreaseFontSize,
+ },
+ -- Increase font size
+ {
+ mods = "CTRL",
+ key = "=",
+ action = act.IncreaseFontSize,
+ },
+ -- Move tabs - relative
+ {
+ mods = "CTRL|SHIFT",
+ key = "LeftArrow",
+ action = act.MoveTabRelative(-1),
+ },
+ {
+ mods = "CTRL|SHIFT",
+ key = "RightArrow",
+ action = act.MoveTabRelative(1),
+ },
+ -- Pase from clipboard
+ {
+ mods = "CTRL|SHIFT",
+ key = "v",
+ action = act.PasteFrom("Clipboard"),
+ },
+ {
+ mods = "SHIFT",
+ key = "Insert",
+ action = act.PasteFrom("Clipboard"),
+ },
+ -- Reset font size
+ {
+ mods = "CTRL",
+ key = "p",
+ action = act.ResetFontSize,
+ },
+ -- Search
+ {
+ mods = "CTRL",
+ key = "f",
+ action = act.Search("CurrentSelectionOrEmptyString"),
+ },
+ -- Debug
+ {
+ mods = "CTRL",
+ key = "d",
+ action = act.ShowDebugOverlay,
+ },
+ -- New tab
+ {
+ mods = "CTRL",
+ key = "t",
+ action = act.SpawnTab("CurrentPaneDomain"),
+ },
+}
+-- Change tabs
+for i = 0, 9 do
+ table.insert(cfg.keys, {
+ mods = "CTRL",
+ key = tostring(i),
+ action = act.ActivateTab(i - 1),
+ })
+end
+-- Move tabs (no support for -1, so a script instead)
+local special_characters = { "!", "@", "#", "$", "%", "^", "&", "*", "(" }
+for i = 1, 9 do
+ table.insert(cfg.keys, {
+ mods = "CTRL|SHIFT",
+ key = special_characters[i],
+ action = act.MoveTab(i - 1),
+ })
+end
+wezterm.on("move-tab-to-last-spot", function(window, pane)
+ local tabs = window:mux_window():tabs()
+ window:perform_action(act.MoveTab(#tabs - 1), pane)
+end)
+table.insert(cfg.keys, {
+ mods = "CTRL|SHIFT",
+ key = ")",
+ action = act.EmitEvent("move-tab-to-last-spot"),
+})
+
+return cfg
diff --git a/desktop/README.md b/desktop/README.md new file mode 100644 index 0000000..47a4f0d --- /dev/null +++ b/desktop/README.md @@ -0,0 +1,3 @@ +All files and directories go to the <b>$HOME</b> directory. +<br/> +The only exception is the <i>root</i> directory - all files and directories from there go to <b>/</b>. diff --git a/desktop/root/etc/sddm.conf b/desktop/root/etc/sddm.conf new file mode 100644 index 0000000..8ebec83 --- /dev/null +++ b/desktop/root/etc/sddm.conf @@ -0,0 +1,139 @@ +[Autologin] +# Whether sddm should automatically log back into sessions when they exit +Relogin=false + +# Name of session file for autologin session (if empty try last logged in) +Session= + +# Username for autologin session +User=mosder + + +[General] +# Which display server should be used. +# Valid values are: x11, x11-user, wayland. Wayland support is experimental +DisplayServer=wayland + +# Comma-separated list of environment variables to be set +GreeterEnvironment= + +# Halt command +HaltCommand=/usr/bin/systemctl poweroff + +# Input method module +InputMethod= + +# Comma-separated list of Linux namespaces for user session to enter +Namespaces= + +# Initial NumLock state. Can be on, off or none. +# If property is set to none, numlock won't be changed +# NOTE: Currently ignored if autologin is enabled. +Numlock=none + +# Reboot command +RebootCommand=/usr/bin/systemctl reboot + + +[Theme] +# Current theme name +Current= + +# Cursor size used in the greeter +CursorSize= + +# Cursor theme used in the greeter +CursorTheme= + +# Number of users to use as threshold +# above which avatars are disabled +# unless explicitly enabled with EnableAvatars +DisableAvatarsThreshold=7 + +# Enable display of custom user avatars +EnableAvatars=true + +# Global directory for user avatars +# The files should be named <username>.face.icon +FacesDir=/usr/share/sddm/faces + +# Font used in the greeter +Font= + +# Theme directory path +ThemeDir=/usr/share/sddm/themes + + +[Users] +# Default $PATH for logged in users +DefaultPath=/usr/local/sbin:/usr/local/bin:/usr/bin + +# Comma-separated list of shells. +# Users with these shells as their default won't be listed +HideShells= + +# Comma-separated list of users that should not be listed +HideUsers= + +# Maximum user id for displayed users +MaximumUid=60513 + +# Minimum user id for displayed users +MinimumUid=1000 + +# Remember the session of the last successfully logged in user +RememberLastSession=true + +# Remember the last successfully logged in user +RememberLastUser=true + +# When logging in as the same user twice, restore the original session, rather than create a new one +ReuseSession=true + + +[Wayland] +# Path of the Wayland compositor to execute when starting the greeter +CompositorCommand=weston --shell=kiosk + +# Enable Qt's automatic high-DPI scaling +EnableHiDPI=true + +# Path to a script to execute when starting the desktop session +SessionCommand=/usr/share/sddm/scripts/wayland-session + +# Comma-separated list of directories containing available Wayland sessions +SessionDir=/usr/local/share/wayland-sessions,/usr/share/wayland-sessions + +# Path to the user session log file +SessionLogFile=.local/share/sddm/wayland-session.log + + +[X11] +# Path to a script to execute when starting the display server +DisplayCommand=/usr/share/sddm/scripts/Xsetup + +# Path to a script to execute when stopping the display server +DisplayStopCommand=/usr/share/sddm/scripts/Xstop + +# Enable Qt's automatic high-DPI scaling +EnableHiDPI=true + +# Arguments passed to the X server invocation +ServerArguments=-nolisten tcp + +# Path to X server binary +ServerPath=/usr/bin/X + +# Path to a script to execute when starting the desktop session +SessionCommand=/usr/share/sddm/scripts/Xsession + +# Comma-separated list of directories containing available X sessions +SessionDir=/usr/local/share/xsessions,/usr/share/xsessions + +# Path to the user session log file +SessionLogFile=.local/share/sddm/xorg-session.log + +# Path to Xephyr binary +XephyrPath=/usr/bin/Xephyr + + diff --git a/desktop/startup-script b/desktop/startup-script deleted file mode 100755 index 55b0c22..0000000 --- a/desktop/startup-script +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -discord & -steam & -brave & |
