From d4a7ee068f497761babd9f12a32dc731ed3d5049 Mon Sep 17 00:00:00 2001 From: eneller Date: Sun, 1 Jan 2023 12:06:49 +0100 Subject: [PATCH] enable picom for ulauncher --- .config/i3/config | 23 ++-- .../ulauncher.service | 1 + .config/systemd/user/syncthing.service | 25 +++++ .config/ulauncher/extensions.json | 21 ++++ .config/ulauncher/settings.json | 2 +- .../generated.css | 11 ++ .../manifest.json | 12 +++ .../theme-gtk-3.20.css | 9 ++ .../Ulauncher-Essential-Light-Theme/theme.css | 100 ++++++++++++++++++ .profile | 2 +- 10 files changed, 195 insertions(+), 11 deletions(-) create mode 120000 .config/systemd/user/graphical-session.target.wants/ulauncher.service create mode 100644 .config/systemd/user/syncthing.service create mode 100644 .config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/generated.css create mode 100644 .config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/manifest.json create mode 100644 .config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/theme-gtk-3.20.css create mode 100644 .config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/theme.css diff --git a/.config/i3/config b/.config/i3/config index 0123728..955f0b2 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -60,16 +60,21 @@ bar { # DROPDOWN # Scratchpad binds -# bindsym $mod+p [class="bitwarden"] scratchpad show; move position center +exec bitwarden-desktop +for_window [instance="bitwarden"] move scratchpad +for_window [instance="bitwarden"] sticky enable +bindsym $mod+p [instance="bitwarden"] scratchpad show; + +exec $TERMINAL --class="dropdown_tmux" +for_window [class="dropdown_tmux"] move scratchpad +for_window [class="dropdown_tmux"] sticky enable +bindsym $mod+Shift+space [class="dropdown_tmux"] scratchpad show; + # General dropdown window traits. The order can matter. # sticky allows windows to stay visible even when switching workspaces -for_window [instance="dropdown_*"] sticky enable -# Specific dropdown window traits -for_window [instance="dropdown_tmux"] resize set 625 450 -for_window [instance="dropdown_tmux"] border pixel 3 -# start scratchpads -# exec --no-startup-id bitwarden-desktop -for_window [class="bitwarden"] move scratchpad +#for_window [instance="dropdown_tmux"] resize set 625 450 +#for_window [instance="dropdown_tmux"] border pixel 3 + # i3 BINDS @@ -149,7 +154,6 @@ bindsym $mod+Shift+0 move container to workspace $ws10 # APPLICATION SHORTCUTS bindsym $mod+Return exec --no-startup-id ulauncher-toggle -bindsym $mod+Shift+Return exec --no-startup-id $LAUNCHER bindsym $mod+space exec --no-startup-id $TERMINAL bindsym $mod+w exec --no-startup-id $BROWSER bindsym $mod+e exec --no-startup-id $EXPLORER @@ -182,5 +186,6 @@ exec --no-startup-id xfce4-power-manager #exec --no-startup-id volumeicon exec --no-startup-id start-pulseaudio-x11 exec --no-startup-id pa-applet +exec --no-startup-id picom bindsym $mod+Ctrl+m exec pavucontrol diff --git a/.config/systemd/user/graphical-session.target.wants/ulauncher.service b/.config/systemd/user/graphical-session.target.wants/ulauncher.service new file mode 120000 index 0000000..ef92516 --- /dev/null +++ b/.config/systemd/user/graphical-session.target.wants/ulauncher.service @@ -0,0 +1 @@ +/usr/lib/systemd/user/ulauncher.service \ No newline at end of file diff --git a/.config/systemd/user/syncthing.service b/.config/systemd/user/syncthing.service new file mode 100644 index 0000000..21f2d55 --- /dev/null +++ b/.config/systemd/user/syncthing.service @@ -0,0 +1,25 @@ +[Unit] +Description=Syncthing - Open Source Continuous File Synchronization +Documentation=man:syncthing(1) +StartLimitIntervalSec=60 +StartLimitBurst=4 + +[Service] +ExecStart=/usr/bin/syncthing serve --no-browser --no-restart --logflags=0 +Restart=on-failure +RestartSec=1 +SuccessExitStatus=3 4 +RestartForceExitStatus=3 4 + +# Hardening +SystemCallArchitectures=native +MemoryDenyWriteExecute=true +NoNewPrivileges=true + +# Elevated permissions to sync ownership (disabled by default), +# see https://docs.syncthing.net/advanced/folder-sync-ownership +#AmbientCapabilities=CAP_CHOWN CAP_FOWNER + +[Install] +WantedBy=default.target + diff --git a/.config/ulauncher/extensions.json b/.config/ulauncher/extensions.json index f92d72c..d378e3f 100644 --- a/.config/ulauncher/extensions.json +++ b/.config/ulauncher/extensions.json @@ -40,5 +40,26 @@ "updated_at": "2022-12-31T13:16:06.744191", "last_commit": "dd631a2e5a1d8bf2ab21095b43afe068443f02b9", "last_commit_time": "2021-06-05T16:42:59" + }, + "com.github.beajeanm.ulauncher-windows-switcher": { + "id": "com.github.beajeanm.ulauncher-windows-switcher", + "url": "https://github.com/beajeanm/ulauncher-windows-switcher", + "updated_at": "2022-12-31T15:56:36.180850", + "last_commit": "e746afcd1ae971294f983dadb6ad2c90a730ec39", + "last_commit_time": "2022-08-04T22:59:46" + }, + "com.github.fisadev.ulauncher-better-file-browser": { + "id": "com.github.fisadev.ulauncher-better-file-browser", + "url": "https://github.com/fisadev/ulauncher-better-file-browser", + "updated_at": "2022-12-31T16:02:28.785265", + "last_commit": "8ec8a0dda09e172de62051cd1f251816ce4af368", + "last_commit_time": "2019-09-06T19:20:09" + }, + "com.github.ikorjefocur.ulauncher-commandrunner": { + "id": "com.github.ikorjefocur.ulauncher-commandrunner", + "url": "https://github.com/IkorJefocur/ulauncher-commandrunner", + "updated_at": "2022-12-31T17:01:45.298473", + "last_commit": "c306301468cbaba23625bf0ef0639b7ad6602783", + "last_commit_time": "2022-03-01T19:34:35" } } \ No newline at end of file diff --git a/.config/ulauncher/settings.json b/.config/ulauncher/settings.json index 87b8ac2..7167f8d 100644 --- a/.config/ulauncher/settings.json +++ b/.config/ulauncher/settings.json @@ -8,5 +8,5 @@ "show-indicator-icon": false, "show-recent-apps": "0", "terminal-command": "", - "theme-name": "light" + "theme-name": "Essential-Light-Theme" } \ No newline at end of file diff --git a/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/generated.css b/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/generated.css new file mode 100644 index 0000000..5cc80f0 --- /dev/null +++ b/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/generated.css @@ -0,0 +1,11 @@ +@import url("/usr/share/ulauncher/themes/light/theme-gtk-3.20.css"); + +@import url("theme.css"); + +.input { + caret-color: @caret_color; +} +.selected.item-box { + /* workaround for a bug in GTK+ < 3.20 */ + border: none; +} \ No newline at end of file diff --git a/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/manifest.json b/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/manifest.json new file mode 100644 index 0000000..29a2b47 --- /dev/null +++ b/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/manifest.json @@ -0,0 +1,12 @@ +{ + "manifest_version": "1", + "name": "Essential-Light-Theme", + "display_name": "Essential Light Theme", + "extend_theme": "light", + "css_file": "theme.css", + "css_file_gtk_3.20+": "theme-gtk-3.20.css", + "matched_text_hl_colors": { + "when_selected": "#ffffff", + "when_not_selected": "#000000" + } +} diff --git a/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/theme-gtk-3.20.css b/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/theme-gtk-3.20.css new file mode 100644 index 0000000..a805d00 --- /dev/null +++ b/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/theme-gtk-3.20.css @@ -0,0 +1,9 @@ +@import url("theme.css"); + +.input { + caret-color: @caret_color; +} +.selected.item-box { + /* workaround for a bug in GTK+ < 3.20 */ + border: none; +} \ No newline at end of file diff --git a/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/theme.css b/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/theme.css new file mode 100644 index 0000000..5712650 --- /dev/null +++ b/.config/ulauncher/user-themes/Ulauncher-Essential-Light-Theme/theme.css @@ -0,0 +1,100 @@ + +/* App Window */ +@define-color bg_color #fff; +@define-color window_bg @bg_color; +@define-color window_border_color rgba(0,0,0, 0); +@define-color prefs_backgroud rgba(0,0,0, 0); + +/* Input */ +@define-color selected_bg_color #106eea; +@define-color selected_fg_color #fff; +@define-color input_color #000; +@define-color caret_color darker(@input_color); + +/* Result items */ +@define-color item_name rgba(0,0,0, 0.80); +@define-color item_text rgba(0,0,0, 0.80); +@define-color item_box_selected #106eea; +@define-color item_text_selected #fff; +@define-color item_name_selected rgba(255,255,255, 0.70); +@define-color item_shortcut_color rgba(0,0,0, 0.80); +@define-color item_shortcut_shadow rgba(0,0,0, 0.00); +@define-color item_shortcut_color_sel #fff; +@define-color item_shortcut_shadow_sel darker(@item_box_selected); + +.app { + background-color: @window_bg; + border: 1px solid @window_border_color;; + border-radius: 10px; + box-shadow: none; + margin: -30px; +} + +.input { + color: @input_color; + padding: 0; +} + +.item-box { + border-radius: 5px; +} + +/* Selected text in input */ +.input *:selected, +.input *:focus, +*:selected:focus { + background-color: alpha (@selected_bg_color, 0.9); + color: @selected_fg_color; +} + +.item-text { + color: @item_text; +} + +.item-name { + color: @item_name; +} + +.selected.item-box { + background-color: @item_box_selected; +} +.selected.item-box .item-text { + color: @item_text_selected; +} +.selected.item-box .item-name { + color: @item_name_selected; +} +.item-shortcut { + color: @item_shortcut_color; + text-shadow: none; +} +.selected.item-box .item-shortcut { + color: @item_shortcut_color_sel; + text-shadow: none; +} + +.prefs-btn { + opacity: 0.6; +} +.prefs-btn * { + box-shadow: none; +} +.prefs-btn:hover { + background-color: @prefs_backgroud; +} +.no-window-shadow { + margin: -20px; +} + +.result-box { + margin: 0px 6px -4px 6px; +} + +.item-frame { + border-top: 1px solid; + border-image-slice: 1; + border-image-source: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, 0) 6%, rgba(0, 0, 0, 0.5) 6%, rgba(0, 0, 0, 0.5) 51%, rgba(0, 0, 0, 0.5) 94%, rgba(255, 255, 255, 0) 94%, rgba(255, 255, 255, 0) 100%); +} +.item-frame:first-child { + border-width: 0px; +} diff --git a/.profile b/.profile index 49a132a..a0e257a 100644 --- a/.profile +++ b/.profile @@ -59,5 +59,5 @@ export BROWSER=/usr/bin/firefox export TERMINAL=/usr/bin/alacritty export EXPLORER=/usr/bin/thunar export MAILCLIENT=/usr/bin/thunderbird -export LAUNCHER="dmenu_run $DMENU_OPTIONS" +export LAUNCHER="ulauncher-toggle" export LOCKSCREEN="i3lock"