From e7cbeaef5d5356137d63f8e7cd558feea19113bd Mon Sep 17 00:00:00 2001 From: Atreya Bain Date: Sun, 21 Feb 2021 19:47:29 +0530 Subject: [PATCH] Add rofi --- README.md | 33 +++++++++++++++++++++++++++++++++ i3/config | 16 ++++++++++++---- picom/picom.conf | 4 ++++ rofi/config.rasi | 10 ++++++++++ setup.sh | 17 +++++++++++------ setup_appl.sh | 6 ++++++ 6 files changed, 76 insertions(+), 10 deletions(-) create mode 100644 rofi/config.rasi create mode 100644 setup_appl.sh diff --git a/README.md b/README.md index b93affe..7dbda8b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,35 @@ # dotfiles Config files for my environment + +Wallpaper from: https://old.reddit.com/r/Art/comments/7ysmt2/lakeside_sunset_digital_8000x4500/ + + +# What do i use + +|**For**| **What**| +|---|---| +|Base|Manjaro(XFCE)| +|Window Manager| `i3`| +|Compositor|`picom`| +|Application Launcher| ~~`dmenu`~~ `rofi`| +|Color Schemes| `pywal`| +|Wallpaper| `feh` (`pywal` uses it)| + + +## What have I changed? +### i3 + +- Logout message +- Use colors +- `i3bar` invocation arguments +- `picom` and `wal` invocation +- Switch to `amixer` to control volume. `pactl` has no volume bounds + +### i3status + +- Added optional cpu usage +- Network(s) show IP only if connected +- No seconds + +### picom +- Add transparency for rofi \ No newline at end of file diff --git a/i3/config b/i3/config index 87922c5..715b95d 100644 --- a/i3/config +++ b/i3/config @@ -32,8 +32,14 @@ exec --no-startup-id nm-applet # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status + +bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 5%+ && $refresh_i3status +# This one does not spark joy +# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status + +bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 5%- && $refresh_i3status +# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status + bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status @@ -52,9 +58,11 @@ bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run -nb "$al" -nf "$bg" -sb "$bg" -sf "$fg" +#bindsym $mod+Shift+d exec --no-startup-id dmenu_run -nb "$al" -nf "$bg" -sb "$bg" -sf "$fg" +bindsym $mod+d exec --no-startup-id "rofi -show drun" +bindsym $mod+Shift+d exec --no-startup-id "rofi -show run" # A more modern dmenu replacement is rofi: -# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +#bindcode $mod+40 exec "rofi -modi drun,run -show drun" # There also is i3-dmenu-desktop which only displays applications shipping a # .desktop file. It is a wrapper around dmenu, so you need that installed. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop diff --git a/picom/picom.conf b/picom/picom.conf index 26d3639..8272c1a 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -3,6 +3,10 @@ ################################# +opacity-rule = [ + "90:class_g = 'Rofi'" +]; + # Enabled client-side shadows on windows. Note desktop windows # (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, # unless explicitly requested using the wintypes option. diff --git a/rofi/config.rasi b/rofi/config.rasi new file mode 100644 index 0000000..e7c6d6f --- /dev/null +++ b/rofi/config.rasi @@ -0,0 +1,10 @@ + + +configuration { + theme: "~/.cache/wal/colors-rofi-dark.rasi"; + modi: "drun,run"; + combi-modi: "window,drun,ssh"; + icon-theme: "Papirus"; + display-drun: "Search"; + show-icons: true; +} diff --git a/setup.sh b/setup.sh index 3766f90..641445b 100755 --- a/setup.sh +++ b/setup.sh @@ -1,12 +1,17 @@ +#!/bin/bash +# i3 test ! -d ~/.config/i3 && ln -s "$(pwd)/i3" ~/.config/i3 - +# i3status test ! -d ~/.config/i3status && ln -s "$(pwd)/i3status" ~/.config/i3status - +# picom test ! -d ~/.config/picom && ln -s "$(pwd)/picom" ~/.config/picom +# rofi +test ! -d ~/.config/rofi && ln -s "$(pwd)/rofi" ~/.config/rofi -# add nvm - -test ! -d ~/.nvm && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash - +# wallpaper +mkdir -p ~/.config/wallpaper/ +test ! -f ~/.config/wallpaper/wallpaper.jpg && echo "Download to ~/.config/wallpaper/wallpaper.jpg: https://old.reddit.com/r/Art/comments/7ysmt2/lakeside_sunset_digital_8000x4500/" +# colorscheme generator +wal -i ~/.config/wallpaper/wallpaper.jpg diff --git a/setup_appl.sh b/setup_appl.sh new file mode 100644 index 0000000..5988fbe --- /dev/null +++ b/setup_appl.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Setup dependencies +# https://www.reddit.com/r/Art/comments/7ysmt2/lakeside_sunset_digital_8000x4500/ +# https://i.imgur.com/E7Naj5o.jpg + +test ! -d ~/.nvm && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash