Skip to content
Snippets Groups Projects
Verified Commit fe07d759 authored by Andreas Gerlach's avatar Andreas Gerlach
Browse files

[sway] update default styles for mako and wofi, error handling in chromium_widevine scripts

parent bf249431
No related branches found
No related tags found
No related merge requests found
...@@ -5,14 +5,15 @@ exec $idle ...@@ -5,14 +5,15 @@ exec $idle
exec_always import-gtk3-settings.sh \ exec_always import-gtk3-settings.sh \
gtk-theme:gtk-theme-name \ gtk-theme:gtk-theme-name \
icon-theme:gtk-icon-theme-name \ icon-theme:gtk-icon-theme-name \
cursor-theme:gtk-cursor-theme-name cursor-theme:gtk-cursor-theme-name \
gtk-font:gtk-font-name
# enable gnome-keyring daemon # enable gnome-keyring daemon
exec systemctl --user import-environment && gnome-keyring-daemon --components=ssh\,secrets\,pkcs11 --start exec systemctl --user import-environment && gnome-keyring-daemon --components=ssh\,secrets\,pkcs11 --start
# autostart background applications # autostart background applications
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec --no-startup-id mako --default-timeout 5000 --icons 1 --markup 1 --actions 1 --background-color "$base0C" --font "Noto Sans 11" exec --no-startup-id mako --config /etc/xdg/mako/config
exec --no-startup-id pamac-tray-appindicator exec --no-startup-id pamac-tray-appindicator
exec --no-startup-id nm-applet --indicator exec --no-startup-id nm-applet --indicator
exec --no-startup-id blueman-applet exec --no-startup-id blueman-applet
......
...@@ -19,8 +19,8 @@ set $term termite ...@@ -19,8 +19,8 @@ set $term termite
# Your preferred application launcher # Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened # Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on. # on the original workspace that the command was run on.
set $appmenu wofi --show drun --insensitive --allow-images --allow-markup --prompt app | xargs swaymsg exec -- set $appmenu wofi --show drun --conf /etc/xdg/wofi/config --style /etc/xdg/wofi/style.css --prompt app | xargs swaymsg exec --
set $menu wofi --show run --insensitive --prompt exec | xargs swaymsg exec -- set $menu wofi --show run --conf /etc/xdg/wofi/config --style /etc/xdg/wofi/style.css --prompt exec | xargs swaymsg exec --
### Idle configuration ### Idle configuration
# This will lock your screen after 300 seconds of inactivity, then turn off # This will lock your screen after 300 seconds of inactivity, then turn off
......
...@@ -126,6 +126,7 @@ for_window [app_id="pamac-manager"] floating enable ...@@ -126,6 +126,7 @@ for_window [app_id="pamac-manager"] floating enable
for_window [app_id="blueman-manager"] floating enable for_window [app_id="blueman-manager"] floating enable
for_window [app_id="nm-connection-editor"] floating enable for_window [app_id="nm-connection-editor"] floating enable
for_window [title="File Operation Progress"] floating enable for_window [title="File Operation Progress"] floating enable
for_window [app_id="firefox" title="Library"] floating enable
# #
# Status Bar: # Status Bar:
......
...@@ -26,15 +26,11 @@ mode "resize" { ...@@ -26,15 +26,11 @@ mode "resize" {
bindsym Shift+Right resize grow width 20px bindsym Shift+Right resize grow width 20px
## Resize // Window Gaps // + - ## ## Resize // Window Gaps // + - ##
bindsym minus gaps inner current minus 6px bindsym minus gaps inner current minus 5px
bindsym plus gaps inner current plus 6px bindsym plus gaps inner current plus 5px
bindsym Shift+minus gaps inner current minus 12px
bindsym Shift+plus gaps inner current plus 12px
# Return to default mode # Return to default mode
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
...@@ -10,4 +10,3 @@ bindsym $mod+Shift+minus move scratchpad ...@@ -10,4 +10,3 @@ bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
# default config for the mako notification daemon
layer=overlay
width=400
height=200
font="Noto Sans 11"
text-color=#1B2224
background-color=#52CBB0
border-radius=5
icons=1
max-icon-size=48
markup=1
actions=1
default-timeout=5000
# default config for the wofi launcher
allow_images=true
allow_markup=true
insensitive=true
hide_scroll=true
lines=10
no_actions=true
term=termite
width=600
#input {
border: none;
border-radius: 0px;
}
#text {
margin-left: 1em;
}
window {
opacity: 0.9;
border: 2px solid #52CBB0;
background-color: #1B2224;
color: #F5F7FA;
border-radius: 5px;
}
...@@ -18,6 +18,8 @@ if [[ $CONNECTION_STATUS -ne 0 ]]; then ...@@ -18,6 +18,8 @@ if [[ $CONNECTION_STATUS -ne 0 ]]; then
exit 1 exit 1
fi fi
set -e
# message functions # message functions
msg() { msg() {
ALL_OFF="\e[1;0m" ALL_OFF="\e[1;0m"
......
...@@ -12,6 +12,8 @@ if [[ $IMAGE_STATUS -ne 0 ]]; then ...@@ -12,6 +12,8 @@ if [[ $IMAGE_STATUS -ne 0 ]]; then
exit 1 exit 1
fi fi
set -e
if [[ ! -d $HOME/.local/share/chromium_widevine ]]; then if [[ ! -d $HOME/.local/share/chromium_widevine ]]; then
mkdir -p $HOME/.local/share/chromium_widevine mkdir -p $HOME/.local/share/chromium_widevine
fi fi
...@@ -40,6 +42,7 @@ pkexec systemd-nspawn --directory $CONTAINER_DIR/$CONTAINER_ID \ ...@@ -40,6 +42,7 @@ pkexec systemd-nspawn --directory $CONTAINER_DIR/$CONTAINER_ID \
--setenv=LIBVA_DRIVER_NAME=v4l2_request \ --setenv=LIBVA_DRIVER_NAME=v4l2_request \
--bind-ro=$host_pulseaudio:/run/user/host/pulse \ --bind-ro=$host_pulseaudio:/run/user/host/pulse \
--bind-ro=$host_dbus:/run/user/host/bus \ --bind-ro=$host_dbus:/run/user/host/bus \
--bind-ro=/var/run/dbus/system_bus_socket \
--bind-ro=/usr/share/themes/:$XDG_DATA_HOME/themes/ \ --bind-ro=/usr/share/themes/:$XDG_DATA_HOME/themes/ \
--bind=/dev/dri \ --bind=/dev/dri \
--bind=/dev/shm \ --bind=/dev/shm \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment