From c8d19a52e004abdeaaa73416747d9acb56984446 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Wed, 25 Sep 2024 21:12:18 -0500 Subject: add nixos config --- gentoo/.config/discord/settings.org | 16 -- gentoo/.config/emacs | 1 - gentoo/.config/fastfetch | 1 - gentoo/.config/foot/foot.org | 66 --------- gentoo/.config/fuzzel/fuzzel.org | 35 ----- gentoo/.config/mpd/mpd.org | 68 --------- gentoo/.config/ncmpcpp/bindings.org | 28 ---- gentoo/.config/ncmpcpp/config.org | 16 -- gentoo/.config/nvim | 1 - gentoo/.config/sway/config.org | 284 ------------------------------------ gentoo/.config/sway/poweraction.org | 9 -- gentoo/.config/sway/powerprompt.org | 19 --- gentoo/.config/waybar/config.org | 110 -------------- gentoo/.config/waybar/style.org | 124 ---------------- 14 files changed, 778 deletions(-) delete mode 100644 gentoo/.config/discord/settings.org delete mode 120000 gentoo/.config/emacs delete mode 120000 gentoo/.config/fastfetch delete mode 100644 gentoo/.config/foot/foot.org delete mode 100644 gentoo/.config/fuzzel/fuzzel.org delete mode 100644 gentoo/.config/mpd/mpd.org delete mode 100644 gentoo/.config/ncmpcpp/bindings.org delete mode 100644 gentoo/.config/ncmpcpp/config.org delete mode 120000 gentoo/.config/nvim delete mode 100644 gentoo/.config/sway/config.org delete mode 100644 gentoo/.config/sway/poweraction.org delete mode 100644 gentoo/.config/sway/powerprompt.org delete mode 100644 gentoo/.config/waybar/config.org delete mode 100644 gentoo/.config/waybar/style.org (limited to 'gentoo/.config') diff --git a/gentoo/.config/discord/settings.org b/gentoo/.config/discord/settings.org deleted file mode 100644 index 725b773..0000000 --- a/gentoo/.config/discord/settings.org +++ /dev/null @@ -1,16 +0,0 @@ -#+title: Discord settings.json -There really isn't much to this. I do set =SKIP_HOST_UPDATE= to =true= though to prevent it from trying to auto-update before it appears in my operating system repositories. -#+begin_src js :tangle ~/.config/discord/settings.json :mkdirp yes - { - "IS_MAXIMIZED": false, - "IS_MINIMIZED": false, - "SKIP_HOST_UPDATE": true, - "chromiumSwitches": {}, - "WINDOW_BOUNDS": { - "x": 0, - "y": 0, - "width": 1060, - "height": 1870 - } - } -#+end_src diff --git a/gentoo/.config/emacs b/gentoo/.config/emacs deleted file mode 120000 index f4e5e56..0000000 --- a/gentoo/.config/emacs +++ /dev/null @@ -1 +0,0 @@ -../../common/.config/emacs \ No newline at end of file diff --git a/gentoo/.config/fastfetch b/gentoo/.config/fastfetch deleted file mode 120000 index a73d684..0000000 --- a/gentoo/.config/fastfetch +++ /dev/null @@ -1 +0,0 @@ -../../common/.config/fastfetch \ No newline at end of file diff --git a/gentoo/.config/foot/foot.org b/gentoo/.config/foot/foot.org deleted file mode 100644 index 01d7489..0000000 --- a/gentoo/.config/foot/foot.org +++ /dev/null @@ -1,66 +0,0 @@ -#+title: Foot Settings -* Basic Settings -Use Source Code Pro with Nerd Font in size 10. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - font=SauceCodePro Nerd Font:size=10 -#+end_src - -Add 6 pixel padding around the terminal. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - pad=6x6 -#+end_src - -* URL -Use Firefox to open URLs. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - [url] - launch=firefox ${url} -#+end_src - -* Mouse -Hide the mouse when typing. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - [mouse] - hide-when-typing=yes -#+end_src - -* Colours -The colours are defined here. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - [colors] -#+end_src - -I use a slightly transparent background. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - alpha=0.9 -#+end_src - -Set my foreground and background colours. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - background=ece0c9 - foreground=191916 -#+end_src - -Set my regular 8 colours. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - regular0=191916 - regular1=ac4438 - regular2=354d52 - regular3=ba9151 - regular4=465b91 - regular5=5b5489 - regular6=4e6062 - regular7=c9ad7a -#+end_src - -Set my bright 8 colours. -#+begin_src conf :tangle ~/.config/foot/foot.ini :mkdirp yes - bright0=293c3c - bright1=d8611c - bright2=4b7b53 - bright3=d8974b - bright4=2f3d91 - bright5=735e82 - bright6=6b8f92 - bright7=ece0c9 -#+end_src diff --git a/gentoo/.config/fuzzel/fuzzel.org b/gentoo/.config/fuzzel/fuzzel.org deleted file mode 100644 index be2d91a..0000000 --- a/gentoo/.config/fuzzel/fuzzel.org +++ /dev/null @@ -1,35 +0,0 @@ -#+title: Fuzzel Configuration - -Place Fuzzel above fullscreen windows. -#+begin_src conf :tangle ~/.config/fuzzel/fuzzel.ini :mkdirp yes - layer=overlay -#+end_src - -Define fields to search in. -#+begin_src conf :tangle ~/.config/fuzzel/fuzzel.ini :mkdirp yes - fields=name,generic,comment,categories,filename,keywords -#+end_src - -Launch terminal programs in =foot=. -#+begin_src conf :tangle ~/.config/fuzzel/fuzzel.ini :mkdirp yes - terminal=foot -e -#+end_src - -Use Source Code Pro like the rest of my configuration. -#+begin_src conf :tangle ~/.config/fuzzel/fuzzel.ini :mkdirp yes - font=SauceCodePro Nerd Font:size=15 -#+end_src - -Set the colours. -#+begin_src conf :tangle ~/.config/fuzzel/fuzzel.ini :mkdirp yes - [colors] - background=ece0c9e6 - selection=cfbc8ce6 - border=ffffff00 -#+end_src - -Use a square border. -#+begin_src conf :tangle ~/.config/fuzzel/fuzzel.ini :mkdirp yes - [border] - radius=0 -#+end_src diff --git a/gentoo/.config/mpd/mpd.org b/gentoo/.config/mpd/mpd.org deleted file mode 100644 index 4eca326..0000000 --- a/gentoo/.config/mpd/mpd.org +++ /dev/null @@ -1,68 +0,0 @@ -#+title: MPD Settings -* Directories -Check for music files in =~/Music=. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - music_directory "~/Music" -#+end_src - -Put playlists at =~/.config/mpd/playlists=. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - playlist_directory "~/.config/mpd/playlists" -#+end_src - -Put database at =~/.config/mpd/database=. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - db_file "~/.config/mpd/database" -#+end_src - -Put log file at =~/.config/mpd/log=. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - log_file "~/.config/mpd/log" -#+end_src - -Put PID file at =~/.config/mpd/pid=. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - pid_file "~/.config/mpd/pid" -#+end_src - -Put the state file at =~/.config/mpd/state=. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - state_file "~/.config/mpd/state" -#+end_src - -Put the sticker file at =~/.config/mpd/sticker.sql=. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - sticker_file "~/.config/mpd/sticker.sql" -#+end_src - -Use UTF-8 in the file system. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - filesystem_charset "UTF-8" -#+end_src - -* Network -Run MPD on =localhost=. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - bind_to_address "localhost" -#+end_src - -* Outputs -Output to PipeWire. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - audio_output { - type "pipewire" - name "Pipewire" - mixer_type "hardware" - enabled "yes" - } -#+end_src - -Output to FIFO. -#+begin_src conf :tangle ~/.config/mpd/mpd.conf :mkdirp yes - audio_output { - type "fifo" - name "my_fifo" - path "~/.config/mpd/mpd.fifo" - format "44100:16:2" - } -#+end_src diff --git a/gentoo/.config/ncmpcpp/bindings.org b/gentoo/.config/ncmpcpp/bindings.org deleted file mode 100644 index 1982a6d..0000000 --- a/gentoo/.config/ncmpcpp/bindings.org +++ /dev/null @@ -1,28 +0,0 @@ -#+title: =ncmpcpp= Keyboard Bindings -Use =vi= motions in =ncmpcpp=. -#+begin_src conf :tangle ~/.config/ncmpcpp/bindings :mkdirp yes -def_key "j" - scroll_down -def_key "k" - scroll_up -def_key "h" - previous_column -def_key "l" - next_column -def_key "ctrl-b" - page_up -def_key "ctrl-u" - page_up -def_key "ctrl-f" - page_down -def_key "ctrl-d" - page_down -def_key "g" - move_home -def_key "G" - move_end -def_key "n" - next_found_item -def_key "N" - previous_found_item -#+end_src diff --git a/gentoo/.config/ncmpcpp/config.org b/gentoo/.config/ncmpcpp/config.org deleted file mode 100644 index 8195877..0000000 --- a/gentoo/.config/ncmpcpp/config.org +++ /dev/null @@ -1,16 +0,0 @@ -#+title: =ncmpcpp= Configuration -Set the =ncmpcpp= directory to =~/.config/ncmpcpp/=. -#+begin_src conf :tangle ~/.config/ncmpcpp/config :mkdirp yes -ncmpcpp_directory = "~/.config/ncmpcpp" -#+end_src - -Set the host/port pair to find the music player daemon at. -#+begin_src conf :tangle ~/.config/ncmpcpp/config :mkdirp yes -mpd_host = "localhost" -mpd_port = "6600" -#+end_src - -Specify the location of the Music directory to be =~/Music=. -#+begin_src conf :tangle ~/.config/ncmpcpp/config :mkdirp yes -mpd_music_dir = "~/Music" -#+end_src diff --git a/gentoo/.config/nvim b/gentoo/.config/nvim deleted file mode 120000 index a0abd03..0000000 --- a/gentoo/.config/nvim +++ /dev/null @@ -1 +0,0 @@ -../../common/.config/nvim \ No newline at end of file diff --git a/gentoo/.config/sway/config.org b/gentoo/.config/sway/config.org deleted file mode 100644 index 15e5df3..0000000 --- a/gentoo/.config/sway/config.org +++ /dev/null @@ -1,284 +0,0 @@ -#+title: Sway Configuration -* Variables -Use =super= as modifier key. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - set $mod Mod4 -#+end_src - -Use =vi= motions as directional inputs. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - set $left h - set $down j - set $up k - set $right l -#+end_src - -Use =foot= as default terminal. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - set $term foot -#+end_src - -Use =wofi= as app launcher. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - set $menu fuzzel -#+end_src - -* Startup Application -Use =dbus= environment. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec --no-startup-id dbus-update-activation-environment --all -#+end_src - -Use =mako= as notification daemon. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec mako -#+end_src - -Launch PipeWire without =systemd=. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec gentoo-pipewire-launcher restart & -#+end_src - -Launch =blueman-applet= as Bluetooth daemon. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec blueman-applet -#+end_src - -Launch music player daemon. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec mpd -#+end_src - -Launch =mpdscribble= as scrobbler daemon. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec mpdscribble -#+end_src - -Launch Emacs daemon. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec emacs --daemon -#+end_src - -Launch Proton Mail Bridge at login. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec proton-mail-bridge --noninteractive -#+end_src - -Launch Syncthing at login. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - exec syncthing -#+end_src - -* Display -I use a vertical monitor on the left and horizontal monitor on the right. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - output DP-2 resolution 2560x1440 position 1080 100 - output HDMI-A-2 resolution 1920x1080 transform 90 position 0 0 -#+end_src - -Use the file at =~/.wallpaper= as my wallpaper. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - output * bg ~/.wallpaper fill -#+end_src - -Remove borders from windows. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - default_border none - default_floating_border none - font pango:monospace 1 -#+end_src - -Use 10 pixel gaps. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - gaps inner 10 -#+end_src - -Use =waybar= as a top bar. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bar { - position top - - status_command waybar - mode invisible - } -#+end_src - -* Input -Use pointer acceleration. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - input * { - accel_profile "adaptive" - pointer_accel -.5 - } -#+end_src - -* Controls -Add ability to lock the screen with =swaylock=. Turn off the screen after 15 seconds on lock screen. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Control+l exec swaylock --ignore-empty-password --show-failed-attempts --image ~/.wallpaper - exec swayidle -w timeout 15 'if pgrep -x swaylock; then swaymsg "output * power off"; fi' resume 'swaymsg "output * power on"' -#+end_src - -Add keybinding to open a terminal emulator. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Return exec $term -#+end_src - -Add keybinding for killing a window. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Shift+q kill -#+end_src - -Add keybinding for opening an app launcher. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+d exec $menu -#+end_src - -Holding the modifier key allows moving a window. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - floating_modifier $mod normal -#+end_src - -Add keybinding for reloading the configuration. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Shift+c reload -#+end_src - -Add keybinding to launch logout/power off/restart [[file:powerprompt.org][prompt]] which also activates with the power key. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Shift+e exec bash ~/.config/sway/powerprompt - bindsym XF86PowerOff exec bash ~/.config/sway/powerprompt -#+end_src - -Change focus keybindings. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+$left focus left - bindsym $mod+$down focus down - bindsym $mod+$up focus up - bindsym $mod+$right focus right - - bindsym $mod+Left focus left - bindsym $mod+Down focus down - bindsym $mod+Up focus up - bindsym $mod+Right focus right -#+end_src - -Move window keybindings. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Shift+$left move left - bindsym $mod+Shift+$down move down - bindsym $mod+Shift+$up move up - bindsym $mod+Shift+$right move right - - bindsym $mod+Shift+Left move left - bindsym $mod+Shift+Down move down - bindsym $mod+Shift+Up move up - bindsym $mod+Shift+Right move right -#+end_src - -Change workspace keybindings. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+1 workspace number 1 - bindsym $mod+2 workspace number 2 - bindsym $mod+3 workspace number 3 - bindsym $mod+4 workspace number 4 - bindsym $mod+5 workspace number 5 - bindsym $mod+6 workspace number 6 - bindsym $mod+7 workspace number 7 - bindsym $mod+8 workspace number 8 - bindsym $mod+9 workspace number 9 - bindsym $mod+0 workspace number 10 -#+end_src - -Move window to workspace keybindings. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Shift+1 move container to workspace number 1 - bindsym $mod+Shift+2 move container to workspace number 2 - bindsym $mod+Shift+3 move container to workspace number 3 - bindsym $mod+Shift+4 move container to workspace number 4 - bindsym $mod+Shift+5 move container to workspace number 5 - bindsym $mod+Shift+6 move container to workspace number 6 - bindsym $mod+Shift+7 move container to workspace number 7 - bindsym $mod+Shift+8 move container to workspace number 8 - bindsym $mod+Shift+9 move container to workspace number 9 - bindsym $mod+Shift+0 move container to workspace number 10 -#+end_src - -Set split direction keybindings. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+v splith - bindsym $mod+s splitv -#+end_src - -Toggle layout keybindings. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+e layout toggle split -#+end_src - -Define full screen keybinding. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+f fullscreen -#+end_src - -Define toggle floating keybinding. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Shift+space floating toggle -#+end_src - -Move focus between floating and tiled layer keybinding. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+space focus mode_toggle -#+end_src - -Focus on the parent window keybinding. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+a focus parent -#+end_src - -Keybindings to move a window to the scratchpad and back from it. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Shift+minus move scratchpad - bindsym $mod+minus scratchpad show -#+end_src - -Add resize keybindings. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - mode "resize" { - bindsym $left resize shrink width 10px - bindsym $down resize grow height 10px - bindsym $up resize shrink height 10px - bindsym $right resize grow width 10px - - bindsym Left resize shrink width 10px - bindsym Down resize grow height 10px - bindsym Up resize shrink height 10px - bindsym Right resize grow width 10px - - bindsym Return mode "default" - bindsym Escape mode "default" - } - bindsym $mod+r mode "resize" -#+end_src - -Add screenshot keybinding. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym $mod+Shift+s exec grim -g "$(slurp)" - | wl-copy -#+end_src - -Add volume keybindings. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ - bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- - bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle -#+end_src - -Add pause keybinding. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - bindsym XF86Eject exec mpc toggle -#+end_src - -* Extras -Load extra configuration. -#+begin_src conf :tangle ~/.config/sway/config :mkdirp yes - include /etc/sway/config.d/* -#+end_src diff --git a/gentoo/.config/sway/poweraction.org b/gentoo/.config/sway/poweraction.org deleted file mode 100644 index 68105ca..0000000 --- a/gentoo/.config/sway/poweraction.org +++ /dev/null @@ -1,9 +0,0 @@ -#+title: Sway Power Action Script -Run this shell script from power off menu to either log off, restart, or power off. -#+begin_src sh :tangle ~/.config/sway/poweraction :mkdirp yes - rm ~/.swaynaglock - case $1 in - logout) swaymsg exit;; - ,*) doas "/sbin/$1";; - esac -#+end_src diff --git a/gentoo/.config/sway/powerprompt.org b/gentoo/.config/sway/powerprompt.org deleted file mode 100644 index dcc93fd..0000000 --- a/gentoo/.config/sway/powerprompt.org +++ /dev/null @@ -1,19 +0,0 @@ -#+title: Sway Power Prompt Script -Activate =swaynag= prompt with power-off options if the lock file is not present which executes an [[file:poweraction.org][action]]. -#+begin_src sh :tangle ~/.config/sway/powerprompt :mkdirp yes - if test -f ~/.swaynaglock; then - killall swaynag - rm ~/.swaynaglock - else - touch ~/.swaynaglock - swaynag --background 00000030 --border 00000030 --border-bottom 00000030 --button-background 00000030 --font=SauceCodePro Nerd Font 256\ - -m '' \ - -b '󰍃' \ - 'bash ~/.config/sway/poweraction logout' \ - -b '⏻' \ - 'bash ~/.config/sway/poweraction poweroff' \ - -b '' \ - 'bash ~/.config/sway/poweraction reboot' - rm ~/.swaynaglock - fi -#+end_src diff --git a/gentoo/.config/waybar/config.org b/gentoo/.config/waybar/config.org deleted file mode 100644 index 9fc9f95..0000000 --- a/gentoo/.config/waybar/config.org +++ /dev/null @@ -1,110 +0,0 @@ -#+title: Waybar Configuration -* Layout -Define the layout of the bar with workspaces and scratchpad on the left, the current window in the middle, and music player daemon, sound, network, CPU usage, memory usage, clock, and system tray on the right. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - { - "height": 30, - "spacing": 4, - "modules-left": ["sway/workspaces", "sway/scratchpad"], - "modules-center": ["sway/window"], - "modules-right": ["mpd", "pulseaudio", "network", "cpu", "memory", "clock", "tray"], -#+end_src - -* Components -Define scratchpad component. To show an icon and the count of items in it. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - "sway/scratchpad": { - "format": "{icon} {count}", - "show-empty": false, - "format-icons": ["", ""], - "tooltip": true, - "tooltip-format": "{app}: {title}" - }, -#+end_src - -Define music player daemon component to list the current song, album, artist, and position in the song with an icon representing the status. Clicking it opens a TUI interface to the daemon. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - "mpd": { - "format": "{stateIcon} {artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) [{songPosition}|{queueLength}] 🎵", - "format-disconnected": "Disconnected 🎵", - "format-stopped": "{consumeIcon}Stopped 🎵", - "unknown-tag": "N/A", - "interval": 2, - "state-icons": { - "paused": "", - "playing": "" - }, - "tooltip-format": "MPD (connected)", - "tooltip-format-disconnected": "MPD (disconnected)", - "on-click": "foot -e ncmpcpp" - }, -#+end_src - -Define tray component. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - "tray": { - "icon-size": 21, - "spacing": 10, - "show-passive-items": true - }, -#+end_src - -Define clock component to show the current time and a calendar in a tooltip. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - "clock": { - "format": "{:%H:%M\t%Y-%m-%d}", - "tooltip-format": "{:%Y %B}\n{calendar}" - }, -#+end_src - -Define CPU usage component to show usage in percent with an icon. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - "cpu": { - "format": "{usage}% ", - "tooltip": false - }, -#+end_src - -Define memory usage component to show usage in percent with an icon. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - "memory": { - "format": "{}% " - }, -#+end_src - -Define network component to show a Wi-Fi icon if connected and a warning signal if not. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - "network": { - // "interface": "wlp2*", // (Optional) To force the use of this interface - "format-wifi": "", - "tooltip": false, - "format-ethernet": "", - "format-linked": "", - "format-disconnected": "⚠", - "on-click": "kcmshell5 kcm_networkmanagement" - }, -#+end_src - -Define audio component to show the volume level and whether or not it is muted with an icon. Clicking it opens a GUI sound menu. -#+begin_src js :tangle ~/.config/waybar/config :mkdirp yes - "pulseaudio": { - // "scroll-step": 1, // %, can be a float - "format": "{volume}% {icon}", - "format-bluetooth": "{volume}% {icon}", - "format-bluetooth-muted": " {icon}", - "format-muted": " ", - "format-source": "{volume}% ", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", ""] - }, - "on-click": "pavucontrol" - } - } -#+end_src diff --git a/gentoo/.config/waybar/style.org b/gentoo/.config/waybar/style.org deleted file mode 100644 index 3f2ae62..0000000 --- a/gentoo/.config/waybar/style.org +++ /dev/null @@ -1,124 +0,0 @@ -#+title: Waybar Styling -Set global font, colours, and transitions to have a transparent background. The text is white with a small shadow. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - window#waybar { - font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif; - font-size: 13px; - background: transparent; - color: #ffffff; - text-shadow: 1px 1px #64727D; - transition-property: background-color; - transition-duration: .5s; - } -#+end_src - -Remove the border from buttons and make them square. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - button { - border: none; - border-radius: 0; - } -#+end_src - -Hovering over a button should inherit the background colour and add a white border to the bottom. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - button:hover { - background: inherit; - box-shadow: inset 0 -3px #ffffff; - } -#+end_src - -Workspace buttons should have white with a small shadow, a little bit of extra horizontal padding, and a transparent background. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #workspaces button { - padding: 0 5px; - text-shadow: 1px 1px #64727D; - background-color: transparent; - color: #ffffff; - } -#+end_src - -Hovering over a workspace button should darken it. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #workspaces button:hover { - background: rgba(0, 0, 0, 0.2); - } -#+end_src - -The focused workspace should have a white bottom border. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #workspaces button.focused { - background: transparent; - box-shadow: inset 0 -3px #ffffff; - } -#+end_src - -Urgent workspaces should be red. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #workspaces button.urgent { - background-color: #eb4d4b; - } -#+end_src - -Add extra horizontal padding where needed. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #clock, - #cpu, - #memory, - #disk, - #network, - #pulseaudio, - #wireplumber, - #custom-media, - #tray, - #mode, - #scratchpad, - #mpd { - padding: 0 10px; - } -#+end_src - -Add extra horizontal margins where needed. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #window, - #workspaces { - margin: 0 4px; - } -#+end_src - -Omit margins on the leftmost and rightmost workspaces. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - .modules-left > widget:first-child > #workspaces { - margin-left: 0; - } - - /* If workspaces is the rightmost module, omit right margin */ - .modules-right > widget:last-child > #workspaces { - margin-right: 0; - } -#+end_src - -Passive system tray icons are dimmed. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #tray > .passive { - -gtk-icon-effect: dim; - } -#+end_src - -Tray icons that need attention are highlighted. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #tray > .needs-attention { - -gtk-icon-effect: highlight; - } -#+end_src - -The scratchpad should be darkened and transparent when empty. -#+begin_src css :tangle ~/.config/waybar/style.css :mkdirp yes - #scratchpad { - background: rgba(0, 0, 0, 0.2); - } - - #scratchpad.empty { - background-color: transparent; - } -#+end_src -- cgit v1.2.3