Add rofi
This commit is contained in:
33
README.md
33
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
|
16
i3/config
16
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
|
||||
|
@@ -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.
|
||||
|
10
rofi/config.rasi
Normal file
10
rofi/config.rasi
Normal file
@@ -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;
|
||||
}
|
17
setup.sh
17
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
|
||||
|
||||
|
6
setup_appl.sh
Normal file
6
setup_appl.sh
Normal file
@@ -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
|
Reference in New Issue
Block a user