Added sunshine, configured dunst and waybar. Added fzfmenu.
This commit is contained in:
parent
82895847fb
commit
4646779b40
486
config/dunst/dunstrc
Normal file
486
config/dunst/dunstrc
Normal file
@ -0,0 +1,486 @@
|
||||
# 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 = none
|
||||
|
||||
### Geometry ###
|
||||
|
||||
# dynamic width from 0 to 300
|
||||
# width = (0, 300)
|
||||
# constant width of 300
|
||||
width = 300
|
||||
|
||||
# The maximum height of a single notification, excluding the frame.
|
||||
height = 100
|
||||
|
||||
# Position the notification in the top right corner
|
||||
origin = top-center
|
||||
|
||||
# Offset from the origin
|
||||
offset = 0
|
||||
|
||||
# Scale factor. It is auto-detected if value is 0.
|
||||
scale = 0
|
||||
|
||||
# Maximum number of notification (0 means no limit)
|
||||
notification_limit = 20
|
||||
|
||||
### 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 = 10
|
||||
|
||||
# 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 = 150
|
||||
|
||||
# Set the maximum width for the progress bar
|
||||
progress_bar_max_width = 300
|
||||
|
||||
# Corner radius for the progress bar. 0 disables rounded corners.
|
||||
progress_bar_corner_radius = 0
|
||||
|
||||
# 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 = 5
|
||||
|
||||
# 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 = 2
|
||||
|
||||
# Padding between text and separator.
|
||||
padding = 5
|
||||
|
||||
# Horizontal padding.
|
||||
horizontal_padding = 8
|
||||
|
||||
# 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 = 1
|
||||
|
||||
# Defines color of the frame around the notification window.
|
||||
frame_color = "#6c6c6c"
|
||||
|
||||
# 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 = 0
|
||||
|
||||
# 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 = yes
|
||||
|
||||
# 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 = Source Code Pro 10
|
||||
|
||||
# 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
|
||||
# %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>%s</b>\n%b"
|
||||
|
||||
# Alignment of message text.
|
||||
# Possible values are "left", "center" and "right".
|
||||
alignment = left
|
||||
|
||||
# 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 = 60
|
||||
|
||||
# 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 = false
|
||||
|
||||
# Set icon theme (only used for recursive icon lookup)
|
||||
icon_theme = Adwaita
|
||||
# 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.
|
||||
# * 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 = "#000000"
|
||||
foreground = "#eeeeee"
|
||||
timeout = 10
|
||||
# Icon for notifications with low urgency, uncomment to enable
|
||||
#default_icon = /path/to/icon
|
||||
|
||||
[urgency_normal]
|
||||
background = "#000000"
|
||||
foreground = "#eeeeee"
|
||||
timeout = 10
|
||||
override_pause_level = 30
|
||||
# Icon for notifications with normal urgency, uncomment to enable
|
||||
#default_icon = /path/to/icon
|
||||
|
||||
[urgency_critical]
|
||||
background = "#d75400"
|
||||
foreground = "#eeeeee"
|
||||
frame_color = "#a0a0a0"
|
||||
timeout = 0
|
||||
override_pause_level = 60
|
||||
# Icon for notifications with critical urgency, uncomment to enable
|
||||
#default_icon = /path/to/icon
|
||||
|
||||
# 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
|
||||
@ -21,6 +21,8 @@ exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
exec-once = waybar
|
||||
exec-once = hypridle
|
||||
exec-once = /usr/local/bin/pypr --debug /tmp/pypr.log
|
||||
exec-once = flatpak run org.remmina.Remmina -i
|
||||
exec-once = systemctl --user start sunshine
|
||||
|
||||
exec-once = [workspace 1 silent] $terminal
|
||||
exec-once = [workspace 2 silent] $browser
|
||||
@ -161,10 +163,10 @@ bind = $mainMod, C, killactive,
|
||||
bind = $mainMod, M, exit,
|
||||
bind = $mainMod, G, exec, flatpak run com.moonlight_stream.Moonlight
|
||||
bind = $mainMod, F, togglefloating,
|
||||
bind = $mainMod, D, exec, $menu
|
||||
# bind = $mainMod, D, exec, $menu
|
||||
bind = $mainMod, Z, exec, [float] kitty -e fzfmenu
|
||||
bind = ALT, Tab, workspace, m+1
|
||||
bind = ALT SHIFT, Tab, workspace, m-1
|
||||
bind = ALT SHIFT, Tab, workspace, emptyn
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
@ -198,10 +200,8 @@ bind = $mainMod SUPER, 0, movetoworkspace, 10
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, scratchpad
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
bind = $mainMod, B, togglespecialworkspace, btop
|
||||
bind = $mainMod, D, togglespecialworkspace, discord
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
@ -237,30 +237,43 @@ windowrulev2 = float, onworkspace:special:scratchpad
|
||||
windowrulev2 = size 80% 80%, onworkspace:special:scratchpad
|
||||
workspace = special:scratchpad, on-created-empty:kitty
|
||||
|
||||
# Btop
|
||||
windowrulev2 = float, onworkspace:special:btop
|
||||
windowrulev2 = size 80% 80%, onworkspace:special:btop
|
||||
workspace = special:btop, on-created-empty:kitty btop
|
||||
|
||||
# Discord
|
||||
windowrulev2 = opacity 1.0 0.7, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = float, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = size 450 253, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = move 100%-w-20 50, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = workspace e+0, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = float, onworkspace:special:discord
|
||||
windowrulev2 = size 80% 80%, onworkspace:special:discord
|
||||
workspace = special:discord, on-created-empty:flatpak run io.github.equicord.equibop
|
||||
windowrulev2 = workspace special:discord, initialTitle:^(.*• Discord.*)$
|
||||
windowrulev2 = float, initialTitle:^(.*• Discord.*)$
|
||||
windowrulev2 = size 80% 80%, initialTitle:^(.*• Discord.*)$
|
||||
|
||||
# Floating windows
|
||||
windowrulev2 = float, title:^(volume control)$
|
||||
windowrulev2 = dimaround, title:^(Volume Control)$
|
||||
windowrulev2 = float, title:^(Helvum - Pipewire Patchbay)$
|
||||
windowrulev2 = dimaround, title:^(Helvum - Pipewire Patchbay)$
|
||||
|
||||
# Discord/Moonlight PiP
|
||||
windowrulev2 = opacity 1.0 0.7, class:^(.*Brave.*)$, floating:1
|
||||
windowrulev2 = size 450 253, class:^(.*Brave.*)$, floating:1
|
||||
windowrulev2 = move 100%-w-20 50+w+20, class:^(.*Brave.*)$, floating:1
|
||||
windowrulev2 = workspace 3, class:^(.*Brave.*)$, floating:1
|
||||
windowrulev2 = opacity 1.0 0.7, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = float, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = size 450 253, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = move 100%-w-20 50, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = workspace 3, initialTitle:^(Discord Popout)$
|
||||
windowrulev2 = float, initialTitle:^(3D Viewer)$
|
||||
windowrulev2 = dimaround, initialTitle:^(3D Viewer)$
|
||||
windowrulev2 = size 80% 80%, $initialTitle:^(3D Viewer)$
|
||||
windowrulev2 = float, initialClass:^(.*Remmina.*)$
|
||||
windowrulev2 = dimaround, initialClass:^(.*Remmina.*)$
|
||||
windowrulev2 = size 80% 80%, $initialClass:^(.*Remmina.*)$
|
||||
|
||||
#Misc
|
||||
layerrule = dimaround, rofi
|
||||
|
||||
# Workspace definitions
|
||||
windowrulev2 = workspace 3, class:^(.*moonlight.*)$
|
||||
windowrulev2 = workspace 2, initialTitle:^(vesktop)$
|
||||
windowrulev2 = size 1064 712, initialTitle:^(vesktop)$
|
||||
windowrulev2 = workspace 4, class:^(.*kicad.*)$
|
||||
windowrulev2 = workspace 5, class:^(.*org.freecad.FreeCAD.*)$
|
||||
|
||||
# Ignore maximize requests from apps. You'll probably like this.
|
||||
windowrulev2 = suppressevent maximize, class:.*
|
||||
|
||||
14
config/systemd/user/sunshine.service
Normal file
14
config/systemd/user/sunshine.service
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Sunshine self-hosted game stream host for Moonlight.
|
||||
StartLimitIntervalSec=500
|
||||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/sunshine
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
#Flatpak Only
|
||||
#ExecStop=flatpak kill dev.lizardbyte.sunshine
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
@ -64,7 +64,7 @@
|
||||
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"format": "CPU:{usage:02}% {avg_frequency}Ghz",
|
||||
"format": "CPU:{usage:02}% {avg_frequency:0.1f}Ghz",
|
||||
"states": {
|
||||
"warning": 70,
|
||||
"critical": 90
|
||||
@ -103,7 +103,7 @@
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
"spacing": 10
|
||||
"icon-size": 15,
|
||||
"spacing": 15
|
||||
}
|
||||
}
|
||||
|
||||
@ -135,6 +135,24 @@
|
||||
#tray {
|
||||
}
|
||||
|
||||
#tray menu {
|
||||
margin-top: 30px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
color: #eeeeee; /* white text */
|
||||
background-color: #000000; /* dark gray hover background */
|
||||
border: 1px solid #333333;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#tray menu menuitem {
|
||||
padding: 2px 2px 2px 2px;
|
||||
}
|
||||
|
||||
#tray menu menuitem:hover {
|
||||
background-color: #6c6c6c; /* dark gray hover background */
|
||||
}
|
||||
|
||||
#window {
|
||||
}
|
||||
|
||||
|
||||
168
fzfmenu.sh
Executable file
168
fzfmenu.sh
Executable file
@ -0,0 +1,168 @@
|
||||
#!/bin/bash
|
||||
# terminal application launcher for sway, using fzf
|
||||
# Based on: https://gitlab.com/FlyingWombat/my-scripts/blob/master/sway-launcher
|
||||
|
||||
source ~/.fzf.bash
|
||||
shopt -s nullglob
|
||||
if [[ "$1" == 'describe' ]]; then
|
||||
shift
|
||||
if [[ $2 == 'command' ]]; then
|
||||
title=$1
|
||||
readarray arr < <(whatis -l "$1" 2>/dev/null)
|
||||
description="${arr[0]}"
|
||||
description="${description%*-}"
|
||||
else
|
||||
title=$(sed -ne '/^Name=/{s/^Name=//;p;q}' "$1")
|
||||
description=$(sed -ne '/^Comment=/{s/^Comment=//;p;q}' "$1")
|
||||
fi
|
||||
echo -e "\033[33m$title\033[0m"
|
||||
echo "${description:-No description}"
|
||||
exit
|
||||
fi
|
||||
|
||||
HIST_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/${0##*/}-history.txt"
|
||||
|
||||
DIRS=(
|
||||
/usr/share/applications
|
||||
"$HOME/.local/share/applications"
|
||||
/usr/local/share/applications
|
||||
)
|
||||
|
||||
GLYPH_COMMAND=" "
|
||||
GLYPH_DESKTOP=" "
|
||||
|
||||
touch "$HIST_FILE"
|
||||
readarray HIST_LINES <"$HIST_FILE"
|
||||
FZFPIPE=$(mktemp)
|
||||
PIDFILE=$(mktemp)
|
||||
trap 'rm "$FZFPIPE" "$PIDFILE"' EXIT INT
|
||||
|
||||
# Append Launcher History, removing usage count
|
||||
(printf '%s' "${HIST_LINES[@]#* }" >>"$FZFPIPE") &
|
||||
|
||||
# Load and append Desktop entries
|
||||
(
|
||||
for dir in "${DIRS[@]}"; do
|
||||
[[ -d "$dir" ]] || continue
|
||||
awk -v pre="$GLYPH_DESKTOP" -F= '
|
||||
BEGINFILE{application=0;block="";a=0}
|
||||
/^\[Desktop Entry\]/{block="entry"}
|
||||
/^Type=Application/{application=1}
|
||||
/^\[Desktop Action/{
|
||||
sub("^\\[Desktop Action ", "");
|
||||
sub("\\]$", "");
|
||||
block="action";
|
||||
a++;
|
||||
actions[a,"key"]=$0
|
||||
}
|
||||
/^Name=/{
|
||||
if(block=="action") {
|
||||
actions[a,"name"]=$2;
|
||||
} else {
|
||||
name=$2
|
||||
}
|
||||
}
|
||||
ENDFILE{
|
||||
if (application){
|
||||
print FILENAME "\034desktop\034\033[33m" pre name "\033[0m";
|
||||
if (a>0)
|
||||
for (i=1; i<=a; i++)
|
||||
print FILENAME "\034desktop\034\033[33m" pre name "\033[0m (" actions[i, "name"] ")\034" actions[i, "key"]
|
||||
}
|
||||
}' \
|
||||
"$dir/"*.desktop </dev/null >>"$FZFPIPE"
|
||||
# the empty stdin is needed in case no *.desktop files
|
||||
done
|
||||
) &
|
||||
|
||||
# Load and append command list
|
||||
(
|
||||
IFS=:
|
||||
read -ra path <<<"$PATH"
|
||||
for dir in "${path[@]}"; do
|
||||
printf '%s\n' "$dir/"* |
|
||||
awk -F / -v pre="$GLYPH_COMMAND" '{print $NF "\034command\034\033[31m" pre "\033[0m" $NF;}'
|
||||
done | sort -u >>"$FZFPIPE"
|
||||
) &
|
||||
|
||||
COMMAND_STR=$(
|
||||
(
|
||||
tail -n +0 -f "$FZFPIPE" &
|
||||
echo $! >"$PIDFILE"
|
||||
) |
|
||||
fzf +s -x -d '\034' --nth ..3 --with-nth 3 \
|
||||
--preview "$0 describe {1} {2}" \
|
||||
--preview-window=up:3:wrap --ansi
|
||||
kill -9 "$(<"$PIDFILE")" | tail -n1
|
||||
) || exit 1
|
||||
|
||||
[ -z "$COMMAND_STR" ] && exit 1
|
||||
|
||||
# update history
|
||||
for i in "${!HIST_LINES[@]}"; do
|
||||
if [[ "${HIST_LINES[i]}" == *" $COMMAND_STR"$'\n' ]]; then
|
||||
HIST_COUNT=${HIST_LINES[i]%% *}
|
||||
HIST_LINES[$i]="$((HIST_COUNT + 1)) $COMMAND_STR"$'\n'
|
||||
match=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
if ! ((match)); then
|
||||
HIST_LINES+=("1 $COMMAND_STR"$'\n')
|
||||
fi
|
||||
|
||||
printf '%s' "${HIST_LINES[@]}" | sort -nr >"$HIST_FILE"
|
||||
|
||||
command='echo "nope"'
|
||||
# shellcheck disable=SC2086
|
||||
readarray -d $'\034' -t PARAMS <<<${COMMAND_STR}
|
||||
# COMMAND_STR is "<string>\034<type>"
|
||||
case ${PARAMS[1]} in
|
||||
desktop)
|
||||
# Define the search pattern that specifies the block to search for within the .desktop file
|
||||
PATTERN="^\\\\[Desktop Entry\\\\]"
|
||||
if [[ -n ${PARAMS[3]} ]]; then
|
||||
PATTERN="^\\\\[Desktop Action ${PARAMS[3]%?}\\\\]"
|
||||
fi
|
||||
# 1. We see a line starting [Desktop, but we're already searching: deactivate search again
|
||||
# 2. We see the specified pattern: start search
|
||||
# 3. We see an Exec= line during search: remove field codes and set variable
|
||||
# 3. We see a Path= line during search: set variable
|
||||
# 4. Finally, build command line
|
||||
command=$(awk -v pattern="${PATTERN}" -F= '
|
||||
BEGIN{a=0;exec=0; path=0}
|
||||
/^\[Desktop/{
|
||||
if(a){
|
||||
a=0
|
||||
}
|
||||
}
|
||||
$0 ~ pattern{
|
||||
a=1
|
||||
}
|
||||
/^Exec=/{
|
||||
if(a && !exec){
|
||||
sub("^Exec=", "");
|
||||
gsub(" ?%[cDdFfikmNnUuv]", "");
|
||||
exec=$0;
|
||||
}
|
||||
}
|
||||
/^Path=/{
|
||||
if(a && !path){
|
||||
path=$2
|
||||
}
|
||||
}
|
||||
|
||||
END{
|
||||
if(path){
|
||||
print "cd " path " &&"
|
||||
}
|
||||
print exec
|
||||
}' "${PARAMS[0]}")
|
||||
;;
|
||||
command)
|
||||
command="${PARAMS[0]}"
|
||||
;;
|
||||
esac
|
||||
hyprctl dispatch togglespecialworkspace scratchpad
|
||||
hyprctl dispatch exec "$command"
|
||||
# hyprctl dispatch killactive
|
||||
@ -16,14 +16,14 @@ echo -e ' \e[H\e[2J
|
||||
'
|
||||
# Create backup/snapshot
|
||||
if pacman -Qs timeshift >/dev/null; then
|
||||
CONFIG_FILE="/etc/timeshift/timeshift.json"
|
||||
if [ -f "$CONFIG_FILE" ]; then
|
||||
BTRFS_MODE=$(jq '.btrfs_mode' "$CONFIG_FILE")
|
||||
if [ "$BTRFS_MODE" == '"true"' ]; then
|
||||
printf -- '\033[33m Creating backup/snapshot\n\033[37m'
|
||||
sudo timeshift --create --comments "Update script"
|
||||
fi
|
||||
fi
|
||||
CONFIG_FILE="/etc/timeshift/timeshift.json"
|
||||
if [ -f "$CONFIG_FILE" ]; then
|
||||
BTRFS_MODE=$(jq '.btrfs_mode' "$CONFIG_FILE")
|
||||
if [ "$BTRFS_MODE" == '"true"' ]; then
|
||||
printf -- '\033[33m Creating backup/snapshot\n\033[37m'
|
||||
sudo timeshift --create --comments "Update script"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Update all pacman packages
|
||||
@ -32,25 +32,25 @@ sudo pacman -Suyy --noconfirm
|
||||
# Update all AUR packages
|
||||
printf -- '\033[33m Updating AUR packages\n\033[37m'
|
||||
if pacman -Qs yay >/dev/null; then
|
||||
yay --noconfirm --aur
|
||||
yay --noconfirm --aur
|
||||
else
|
||||
sudo pacman -S --needed --noconfirm git base-devel
|
||||
if [ -d ~/yay-bin ]; then rm -rf ~/yay-bin; fi
|
||||
cd ~
|
||||
git clone https://aur.archlinux.org/yay-bin.git
|
||||
cd yay-bin
|
||||
makepkg --noconfirm -si
|
||||
cd ~
|
||||
if [ -d ~/yay-bin ]; then rm -rf ~/yay-bin; fi
|
||||
sudo pacman -S --needed --noconfirm git base-devel
|
||||
if [ -d ~/yay-bin ]; then rm -rf ~/yay-bin; fi
|
||||
cd ~
|
||||
git clone https://aur.archlinux.org/yay-bin.git
|
||||
cd yay-bin
|
||||
makepkg --noconfirm -si
|
||||
cd ~
|
||||
if [ -d ~/yay-bin ]; then rm -rf ~/yay-bin; fi
|
||||
fi
|
||||
# Update all Flatpak packages
|
||||
printf -- '\033[33m Updating Flatpak packages\n\033[37m'
|
||||
if pacman -Qs flatpak >/dev/null; then
|
||||
flatpak update -y
|
||||
flatpak update -y
|
||||
else
|
||||
sudo pacman --noconfirm --needed -S flatpak
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
flatpak install -y flathub com.github.tchx84.Flatseal
|
||||
sudo pacman --noconfirm --needed -S flatpak
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
flatpak install -y flathub com.github.tchx84.Flatseal
|
||||
fi
|
||||
|
||||
# Install initial system packages
|
||||
@ -81,6 +81,7 @@ ln -sf ~/code_server/config/hypr/hypridle.conf ~/.config/hypr/hypridle.conf
|
||||
ln -sf ~/code_server/config/gtk-3.0/settings.ini ~/.config/gtk-3.0/settings.ini
|
||||
ln -sf ~/code_server/config/qt5ct/qt5ct.conf ~/.config/qt5ct/qt5ct.conf
|
||||
ln -sf ~/code_server/config/qt6ct/qt6ct.conf ~/.config/qt6ct/qt6ct.conf
|
||||
ln -sf ~/code_server/config/dunst/dunstrc ~/.config/dunst/dunstrc
|
||||
|
||||
# Install rofi
|
||||
printf -- '\033[33m Installing rofi\n\033[37m'
|
||||
@ -157,12 +158,12 @@ sudo mv virtualhereclient.service /etc/systemd/system/virtualhereclient.service
|
||||
|
||||
# Install teensy udev rules (only for non docker system)
|
||||
if [ ! -f /.dockerenv ]; then
|
||||
printf -- '\033[33m Installing teensy udev rules\n\033[37m'
|
||||
sudo rm -f /tmp/00-teensy.rules /etc/udev/rules.d/00-teensy.rules /lib/udev/rules.d/00-teensy.rules
|
||||
sudo wget -O /tmp/00-teensy.rules https://www.pjrc.com/teensy/00-teensy.rules
|
||||
sudo install -o root -g root -m 0664 /tmp/00-teensy.rules /lib/udev/rules.d/00-teensy.rules
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger
|
||||
printf -- '\033[33m Installing teensy udev rules\n\033[37m'
|
||||
sudo rm -f /tmp/00-teensy.rules /etc/udev/rules.d/00-teensy.rules /lib/udev/rules.d/00-teensy.rules
|
||||
sudo wget -O /tmp/00-teensy.rules https://www.pjrc.com/teensy/00-teensy.rules
|
||||
sudo install -o root -g root -m 0664 /tmp/00-teensy.rules /lib/udev/rules.d/00-teensy.rules
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger
|
||||
fi
|
||||
|
||||
# Install neovim
|
||||
@ -316,7 +317,8 @@ sudo pacman --noconfirm --needed -S code
|
||||
|
||||
# Install remmina
|
||||
printf -- '\033[33m Installing remmina\n\033[37m'
|
||||
sudo pacman --noconfirm --needed -S remmina
|
||||
# sudo pacman --noconfirm --needed -S remmina freerdp libvncserver gtk-vnc kwallet5 spice-gtk webkit2gtk
|
||||
flatpak install flathub org.remmina.Remmina
|
||||
|
||||
# Install feh
|
||||
printf -- '\033[33m Installing feh\n\033[37m'
|
||||
@ -350,12 +352,22 @@ sudo pacman --noconfirm --needed -S timeshift
|
||||
|
||||
# Install sunshine
|
||||
printf -- '\033[33m Installing Sunshine\n\033[37m'
|
||||
# if [ -d ~/sunshine.pkg.tar.zst ]; then rm -rf ~/sunshine.pkg.tar.zst; fi
|
||||
# cd ~
|
||||
# wget https://github.com/LizardByte/Sunshine/releases/latest/download/sunshine.pkg.tar.zst
|
||||
# sudo pacman -U --noconfirm sunshine.pkg.tar.zst
|
||||
# if [ -d ~/sunshine.pkg.tar.zst ]; then rm -rf ~/sunshine.pkg.tar.zst; fi
|
||||
yay --noconfirm --needed -S sunshine
|
||||
echo 'KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", TAG+="uaccess"' | sudo tee /etc/udev/rules.d/60-sunshine.rules
|
||||
sudo udevadm control --reload-rules
|
||||
sudo udevadm trigger
|
||||
sudo modprobe uinput
|
||||
sudo setcap cap_sys_admin+p $(readlink -f $(which sunshine))
|
||||
mkdir -p ~/.config/systemd/user
|
||||
cp -f ~/code_server/config/systemd/user/sunshine.service ~/.config/systemd/user/sunshine.service
|
||||
sudo systemctl daemon-reload
|
||||
systemctl --user enable sunshine
|
||||
systemctl --user start sunshine
|
||||
|
||||
# Symlink update script
|
||||
printf -- '\033[33m Symlinking update wrapper\n\033[37m'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user