Skip to content

Instantly share code, notes, and snippets.

@vberlier
Last active July 26, 2022 08:08
Show Gist options
  • Save vberlier/7fd8f3b8b180c99dda1d7ca90d43362a to your computer and use it in GitHub Desktop.
Save vberlier/7fd8f3b8b180c99dda1d7ca90d43362a to your computer and use it in GitHub Desktop.
# Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
detect-rounded-corners = true;
shadow-radius = 64;
shadow-offset-x = -96;
shadow-offset-y = -24;
shadow-opacity = 0.8;
shadow-ignore-shaped = false;
shadow-exclude = [
"name = 'Notification'",
"class_g ?= 'polybar'",
# workaround for conky until it provides window properties:
"override_redirect = 1 && !WM_CLASS@:s",
"class_g ?= 'Dunst'",
# disable shadows for hidden windows:
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
"_GTK_FRAME_EXTENTS@:c",
# disables shadows on sticky windows:
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'",
# disables shadows on i3 frames
"class_g ?= 'i3-frame'",
# disable shadows for non-floating windows
"!I3_FLOATING_WINDOW@:c"
];
shadow-exclude-reg = "x10+0+0";
xinerama-shadow-crop = true;
fading = true;
fade-delta = 1;
fade-in-step = .1;
fade-out-step = .1;
fade-exclude = [ ];
backend = "glx";
mark-wmwin-focused = true;
mark-ovredir-focused = true;
detect-client-opacity = true;
unredir-if-possible = true;
refresh-rate = 0;
vsync = "opengl-swc";
dbe = false;
paint-on-overlay = true;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
glx-no-stencil = true;
glx-copy-from-front = false;
glx-swap-method = 1;
opacity-rule = [
"90:name *?= 'Page Info'",
"90:name *?= 'Panel'",
"90:name *?= 'Restart'",
"99:name *?= 'Write'",
"96:class_g = 'URxvt' && !_NET_WM_STATE@:32a",
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'"
];
wintypes :
{
tooltip :
{
fade = true;
shadow = false;
opacity = 0.85;
focus = true;
};
fullscreen :
{
fade = true;
shadow = false;
opacity = 1;
focus = true;
};
};

I use 3 different configs, one for each widget.

date

conky.config = {
	alignment = 'top_right',
	background = true,
	color2 = '698885',
	cpu_avg_samples = 2,
	default_color = '83a5a1',
	double_buffer = true,
	font = 'Roboto:size=28',
	draw_shades = false,
	gap_x = 32,
	gap_y = 32,
	minimum_width = 220,
	no_buffers = true,
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	update_interval = 1,
	use_xft = true,
}
conky.text = [[
${font Roboto:size=48}$alignr${time %H:%M}$color2$font ${time %S}
${voffset 8}$color2${font}${time %A %d}\
$color${font} ${time %B}

]]

stats

conky.config = {
	alignment = 'top_left',
	background = true,
	color2 = '698885',
	cpu_avg_samples = 2,
	default_color = '83a5a1',
	double_buffer = true,
	font = 'Roboto:size=12',
	draw_shades = false,
	gap_x = 32,
	gap_y = 32,
	minimum_width = 220,
	maximum_width = 220,
	no_buffers = true,
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	update_interval = 2.0,
	use_xft = true,
}
conky.text = [[
${voffset 0}$font${color}CPU${font Roboto:bold:size=10}$alignr$cpu%
${voffset 8}$font$color2${top name 1}$alignr$color${top cpu 1}%
$color2${top name 2}$alignr$color${top cpu 2}%
$color2${top name 3}$alignr$color${top cpu 3}%
$color2${top name 4}$alignr$color${top cpu 4}%
$color2${top name 5}$alignr$color${top cpu 5}%
$color2${top name 6}$alignr$color${top cpu 6}%
#
${voffset 12}${color}RAM${font Roboto:bold:size=10}$alignr$mem$font
${voffset 8}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
$color2${top_mem name 5}$alignr$color${top_mem mem_res 5}
$color2${top_mem name 6}$alignr$color${top_mem mem_res 6}
#
${voffset 12}${color}Swap${font Roboto:bold:size=10}$alignr${swap}/ ${swapfree}
#

]]

info

conky.config = {
	alignment = 'top_left',
	background = true,
	color2 = '698885',
	cpu_avg_samples = 2,
	default_color = '83a5a1',
	double_buffer = true,
	font = 'Roboto:size=12',
	draw_shades = false,
	gap_x = 292,
	gap_y = 32,
	minimum_width = 220,
	no_buffers = true,
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	update_interval = 2.0,
	use_xft = true,
}
conky.text = [[
${voffset 0}$font${execi 10000 awk -F= '/TION/ {print $2}' /etc/lsb-release |sed 's/"//g'} \
${execi 10000 awk -F= '/EASE=/ {printf $2" "} /NAME/ {print $2}' /etc/lsb-release}
${voffset 12}${color2}${execi 1200 whoami}@${nodename}
${color2}${font Roboto:size=10}uptime: ${color}${uptime_short}
${voffset 5}${color2}${font Roboto:size=10}kernel: ${color}${kernel}

]]
[global]
font = Roboto 10
# Allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
# If markup is not allowed, those tags will be stripped out of the
# message.
allow_markup = yes
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# Markup is allowed
format = "%s %p\n%b"
# Sort messages by urgency.
sort = yes
# Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# The frequency with wich text that is longer than the notification
# window allows bounces back and forth.
# This option conflicts with "word_wrap".
# Set to 0 to disable.
bounce_freq = 0
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = 60
# Split notifications into multiple lines if they don't fit into
# geometry.
word_wrap = yes
# Ignore newlines '\n' in notifications.
ignore_newline = no
# The geometry of the window:
# [{width}]x{height}[+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else
# in pixels. If the width is omitted but the height is given
# ("-geometry x2"), the message window expands over the whole screen
# (dmenu-like). If width is 0, the window expands to the longest
# message displayed. A positive x is measured from the left, a
# negative from the right side of the screen. Y is measured from
# the top and down respectevly.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "480x4-0-31"
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = yes
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing windowmanager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 0
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# default 120
idle_threshold = 120
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a windowmanager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern windowmanagers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = mouse
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 20
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
# The height of a single line. If the height is smaller than the
# font height, it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 1.4
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 0
# Padding between text and separator.
# padding = 8
padding = 12
# Horizontal padding.
horizontal_padding = 16
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Print a notification on startup.
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = false
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
# Browser for opening urls in context menu.
browser = google-chrome-stable
# Align icons left/right/off
icon_position = left
# Paths to default icons.
icon_folders = /usr/share/icons/Papirus-Dark/32x32/status/:/usr/share/icons/Papirus-Dark/32x32/devices/
# Limit icons size.
max_icon_size=48
[frame]
width = 0
color = "#24292A"
[shortcuts]
# Shortcuts are specified as [modifier+][modifier+]...key
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
# "mod3" and "mod4" (windows-key).
# Xev might be helpful to find names for keys.
# Close notification.
close = mod1+space
# Close all notifications.
# close_all = ctrl+shift+space
close_all = ctrl+mod1+space
# Redisplay last message(s).
# On the US keyboard layout "grave" is normally above TAB and left
# of "1".
history = ctrl+mod4+h
# Context menu.
context = ctrl+mod1+c
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#3c4140"
foreground = "#ccd2be"
timeout = 16
[urgency_normal]
background = "#3c4140"
foreground = "#ccd2be"
timeout = 16
[urgency_critical]
background = "#D62929"
foreground = "#ccd2be"
timeout = 16
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
# Messages can be matched by "appname", "summary", "body", "icon", "category",
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
# "background", "new_icon" and "format".
# Shell-like globbing will get expanded.
#
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format
# to "".
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# format = ""
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
#[Claws Mail]
# appname = claws-mail
# category = email.arrived
# urgency = normal
# background = "#2F899E"
# foreground = "#FFA247"
#
#[mute.sh]
# appname = mute
# category = mute.sound
# script = mute.sh
#
#[JDownloader]
# appname = JDownloader
# category = JD
# background = "#FFA247"
# foreground = "#FFFFFF"
#
#[newsbeuter]
# summary = *Feeds*
# background = "#A8EB41"
# foreground = "#FFFFFF"
#
[irc]
appname = weechat
timeout = 0
background = "#0033bb"
foreground = "#dddddd"
#
[weechat hl]
appname = weechat
category = weechat.HL
background = "#FF5C47"
foreground = "#FFFFFF"
#
[weechat pn]
appname = weechat
category = weechat.PM
background = "#D53B84"
foreground = "#FFFFFF"
#
#[CMUS]
# appname = CMUS
# category = cmus
# background = "#6C4AB7"
# foreground = "#FFE756"
#
#
# background = "#30AB70"
# foreground = "#F67245"
#
# vim: ft=cfg
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
new_window 1pixel
new_float 1pixel
# Hide borders
hide_edge_borders both
# change borders
bindsym $mod+u border none
bindsym $mod+y border 1pixel
bindsym $mod+n border normal
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font xft:Roboto 12, FontAwesome 12
# Use Mouse+$mod to drag floating windows
floating_modifier $mod
# start a gnome-terminal
bindsym $mod+Return exec gnome-terminal &
bindsym $mod+w exec draw-terminal &
# kill focused window
bindsym $mod+Shift+q kill
# start program launcher
bindsym $mod+d exec --no-startup-id rofi -show drun &
# launch categorized menu
# bindsym $mod+z exec --no-startup-id morc_menu &
################################################################################################
## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ##
################################################################################################
exec --no-startup-id volumeicon &
bindsym $mod+Ctrl+m exec gnome-terminal -e 'alsamixer' &
#exec --no-startup-id pulseaudio &
#exec --no-startup-id pa-applet &
#bindsym $mod+Ctrl+m exec pavucontrol &
################################################################################################
# Screen brightness controls
# bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" &
# bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" &
# Start Applications
# bindsym $mod+Ctrl+b exec gnome-terminal -e 'bmenu' &
bindsym $mod+F2 exec google-chrome-stable &
bindsym $mod+F3 exec thunar &
bindsym $mod+F5 exec audacious &
bindsym $mod+t exec --no-startup-id pkill compton &
bindsym $mod+Ctrl+t exec --no-startup-id compton -b &
bindsym Print exec --no-startup-id screenshot --fullscreen &
bindsym $mod+Print --release exec --no-startup-id screenshot --select &
bindsym $mod+Shift+Print --release exec --no-startup-id screenshot --window &
bindsym $mod+Ctrl+r exec --no-startup-id screen-capture &
bindsym $mod+Ctrl+g exec --no-startup-id screen-capture --with-gif &
bindsym $mod+Ctrl+s exec --no-startup-id pkill ffmpeg &
bindsym $mod+Shift+h exec /usr/bin/toggle_hdmi &
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill &
# focus_follows_mouse no
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# workspace back and forth (with/without active container)
workspace_auto_back_and_forth yes
bindsym $mod+Tab workspace back_and_forth
bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
# split orientation
bindsym $mod+h split h;exec notify-send 'Tile horizontally' &
bindsym $mod+v split v;exec notify-send 'Tile vertically' &
bindsym $mod+q split toggle
# toggle fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
# bindsym $mod+s layout stacking
# bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# toggle sticky
bindsym $mod+Shift+s sticky toggle
# focus the parent container
bindsym $mod+a focus parent
# move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show
#navigate workspaces next / previous
bindsym $mod+Ctrl+Right workspace next
bindsym $mod+Ctrl+Left workspace prev
# Workspace names
# to display names or symbols instead of plain workspace numbers you can use
# something like: set $ws1 1:mail
# set $ws2 2:
set $ws1 1
set $ws2 2
set $ws3 3
set $ws4 4
set $ws5 5
set $ws6 6
set $ws7 7
set $ws8 8
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
# Move focused container to workspace
bindsym $mod+Ctrl+1 move container to workspace $ws1
bindsym $mod+Ctrl+2 move container to workspace $ws2
bindsym $mod+Ctrl+3 move container to workspace $ws3
bindsym $mod+Ctrl+4 move container to workspace $ws4
bindsym $mod+Ctrl+5 move container to workspace $ws5
bindsym $mod+Ctrl+6 move container to workspace $ws6
bindsym $mod+Ctrl+7 move container to workspace $ws7
bindsym $mod+Ctrl+8 move container to workspace $ws8
# Move to workspace with focused container
bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
# Open applications on specific workspaces
# assign [class="Thunderbird"] $ws1
# assign [class="Pale moon"] $ws2
# assign [class="Pcmanfm"] $ws3
# assign [class="Skype"] $ws5
# assign [class="Google-chrome"] $ws1
# assign [class="Code"] $ws2
assign [class="discord"] $ws4
# Open specific applications in floating mode
for_window [class="Thunar"] floating enable
for_window [class="Solaar"] floating enable
for_window [title="alsamixer"] floating enable
for_window [class="Calamares"] floating enable
for_window [class="Clipgrab"] floating enable
for_window [title="File Transfer*"] floating enable
for_window [class="Galculator"] floating enable
for_window [class="GParted"] floating enable
for_window [title="i3_help"] floating enable sticky enable
for_window [class="Lightdm-gtk-greeter-settings"] floating enable
for_window [class="Lxappearance"] floating enable sticky enable
for_window [class="Manjaro-hello"] floating enable
for_window [class="Manjaro Settings Manager"] floating enable
for_window [title="MuseScore: Play Panel"] floating enable
for_window [class="Nitrogen"] floating enable sticky enable
for_window [class="Oblogout"] fullscreen enable
for_window [class="octopi"] floating enable
for_window [title="About Pale Moon"] floating enable
for_window [class="Pamac-manager"] floating enable
for_window [class="Pamac-updater"] floating enable
for_window [class="Pavucontrol"] floating enable
for_window [class="qt5ct"] floating enable sticky enable
for_window [class="Qtconfig-qt4"] floating enable sticky enable
for_window [class="Simple-scan"] floating enable
for_window [class="(?i)System-config-printer.py"] floating enable
for_window [class="Skype"] floating enable
for_window [class="Thus"] floating enable
for_window [class="Timeset-gui"] floating enable
for_window [class="(?i)virtualbox"] floating enable
for_window [class="Xfburn"] floating enable
for_window [class="Audacious"] floating enable
for_window [title="Minecraft Launcher"] floating enable
for_window [window_role="floating-terminal"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable
for_window [title="Blender User Preferences"] floating enable
for_window [title="OCR Project"] floating enable
# switch to workspace with urgent window automatically
for_window [urgent=latest] focus
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" &
# Set shut down, restart and locking features
bindsym $mod+0 mode "$mode_system"
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
mode "$mode_system" {
bindsym l exec --no-startup-id i3exit lock, mode "default"
bindsym s exec --no-startup-id i3exit suspend, mode "default"
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
bindsym e exec --no-startup-id i3exit logout, mode "default"
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
bindsym r exec --no-startup-id i3exit reboot, mode "default"
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
# exit system mode: "Enter" or "Escape"
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Resize window (you can also use the mouse for that)
bindsym $mod+r mode "resize"
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym j resize shrink width 5 px or 5 ppt
bindsym k resize grow height 5 px or 5 ppt
bindsym l resize shrink height 5 px or 5 ppt
bindsym semicolon resize grow width 5 px or 5 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# exit resize mode: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
# Lock screen
bindsym $mod+9 exec --no-startup-id blurlock &
# Autostart applications
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
exec --no-startup-id nitrogen --restore; sleep 1; compton -b &
#exec --no-startup-id manjaro-hello &
exec --no-startup-id nm-applet &
exec --no-startup-id xfce4-power-manager &
exec --no-startup-id pamac-tray &
exec --no-startup-id clipit &
exec --no-startup-id solaar &
exec --no-startup-id dunst &
# exec --no-startup-id blueman &
# exec_always --no-startup-id sbxkb
exec --no-startup-id conky -c ~/.conky/custom/stats &
exec --no-startup-id conky -c ~/.conky/custom/date &
exec --no-startup-id conky -c ~/.conky/custom/info &
# exec --no-startup-id start_conky_green &
exec --no-startup-id xautolock -time 10 -locker blurlock &
exec_always --no-startup-id ff-theme-util
exec_always --no-startup-id fix_xcursor
exec --no-startup-id google-chrome-stable &
exec --no-startup-id discord &
# Color palette used for the gnome-terminal ( ~/.extend.Xresources file )
# Colors are gathered based on the documentation:
# https://i3wm.org/docs/userguide.html#xresources
# Change the variable name at the place you want to match the color
# of your gnome-terminal like this:
# [example]
# If you want your bar to have the same background color as your
# gnome-terminal background change the line 362 from:
# background $i3_background
# to:
# background $term_background
# Same logic applied to everything else.
set_from_resource $term_background background
set_from_resource $term_foreground foreground
set_from_resource $term_color0 color0
set_from_resource $term_color1 color1
set_from_resource $term_color2 color2
set_from_resource $term_color3 color3
set_from_resource $term_color4 color4
set_from_resource $term_color5 color5
set_from_resource $term_color6 color6
set_from_resource $term_color7 color7
set_from_resource $term_color8 color8
set_from_resource $term_color9 color9
set_from_resource $term_color10 color10
set_from_resource $term_color11 color11
set_from_resource $term_color12 color12
set_from_resource $term_color13 color13
set_from_resource $term_color14 color14
set_from_resource $term_color15 color15
# Color palette used for i3
# Variables are set based on the documentation:
# https://i3wm.org/dovs/userguide.html#variables
# Changing the value of one of the variables will
# effect all the areas with the same color.
set $i3_background #2B2C2B
set $i3_text #F9FAF9
set $i3_separator #454947
set $i3_color1 #f9faf9
set $i3_color2 #595B5B
set $i3_color3 #353836
set $i3_color4 #16A085
set $i3_color5 #FDF6E3
set $i3_color6 #EEE8D5
set $i3_color7 #E5201D
set $i3_color8 #808380
set $i3_color9 #434745
set $i3_color10 #454948
set $i3_color11 #80FFF9
set $i3_color12 #FDF6E3
set $i3_color13 #CB4B16
set $i3_color14 #268BD2
set $i3_color15 #000000
set $i3_color16 #ffffff
set $i3_color17 #0c0c0c
# # Start i3bar to display a workspace bar (plus the system information i3status if available)
# bar {
# i3bar_command i3bar
# status_command i3status
# position bottom
#
# ## please set your primary output first. Example: 'xrandr --output eDP1 --primary'
# # tray_output primary
# # tray_output eDP1
#
# bindsym button4 nop
# bindsym button5 nop
# strip_workspace_numbers yes
#
# colors {
# background $term_background
# statusline $term_foreground
# separator $term_color8
#
# # border backgr. text
# focused_workspace $i3_color1 $i3_color4 $i3_text
# active_workspace $i3_color2 $i3_color3 $i3_color5
# inactive_workspace $i3_color2 $i3_color3 $i3_color6
# binding_mode $i3_color8 $i3_background $i3_text
# urgent_workspace $i3_color4 $i3_color5 $i3_color7
# }
# }
#
# # hide/unhide i3status bar
# bindsym $mod+m bar mode toggle
# Theme colors
# class border backgr. text indic. child_border
client.focused $term_color8 $term_color8 $term_color11 $term_color6
client.focused_inactive $term_color8 $term_color8 $term_color11 $term_color6
client.unfocused $term_color8 $term_color8 $term_color8 $term_color10
client.urgent $term_color13 $term_color12 $term_color4 $term_color14
client.placeholder $term_color15 $i3_color17 $i3_color16 $term_color15 $i3_color17
client.background $term_background
#############################
### settings for i3-gaps: ###
#############################
# Set inner/outer gaps
gaps inner 0
gaps outer 0
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
# gaps inner|outer current|all set|plus|minus <px>
# gaps inner all set 10
# gaps outer all plus 5
# Smart gaps (gaps used if only more than one container on the workspace)
smart_gaps on
# Smart borders (draw borders around container only if it is not the only container on this workspace)
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
smart_borders on
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
set $mode_gaps gaps: (o) outer, (i) inner
set $mode_gaps_outer outer gaps: +|-|0 (local), Shift + +|-|0 (global)
set $mode_gaps_inner inner gaps: +|-|0 (local), Shift + +|-|0 (global)
bindsym $mod+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym o mode "$mode_gaps_outer"
bindsym i mode "$mode_gaps_inner"
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_inner" {
bindsym plus gaps inner current plus 5
bindsym minus gaps inner current minus 5
bindsym 0 gaps inner current set 0
bindsym Shift+plus gaps inner all plus 5
bindsym Shift+minus gaps inner all minus 5
bindsym Shift+0 gaps inner all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
mode "$mode_gaps_outer" {
bindsym plus gaps outer current plus 5
bindsym minus gaps outer current minus 5
bindsym 0 gaps outer current set 0
bindsym Shift+plus gaps outer all plus 5
bindsym Shift+minus gaps outer all minus 5
bindsym Shift+0 gaps outer all set 0
bindsym Return mode "default"
bindsym Escape mode "default"
}
exec_always --no-startup-id "killall polybar; polybar -r default"
My polybar config uses colors from my .Xresoures file.
## .Xresources #######################################
*background: #24292A
*foreground: #ccd2be
*fading: 15
*fadeColor: black
*cursorColor: #16A085
*pointerColorBackground: #2B2C2B
*pointerColorForeground: #16A085
!! black dark/light
*color0: #24292A
*color8: #3c4140
!! red dark/light
*color1: #ff8843
*color9: #c48851
!! green dark/light
*color2: #7a8d5c
*color10: #aec199
!! yellow dark/light
*color3: #a69658
*color11: #c4b268
!! blue dark/light
*color4: #7b90a9
*color12: #91aac7
!! magenta dark/light
*color5: #aa6161
*color13: #e78484
!! cyan dark/light
*color6: #698885
*color14: #83a5a1
!! white dark/light
*color7: #a8b298
*color15: #ccd2be
## .config/polybar/config ############################
[colors]
background = #00000000
background-alt = ${xrdb:color8}
foreground = ${xrdb:foreground}
foreground-alt = #555
primary = ${xrdb:color3}
secondary = ${xrdb:color1}
alert = ${xrdb:color13}
[bar/default]
;monitor = ${env:MONITOR:HDMI-1}
bottom = true
width = 100%
height = 31
;offset-x = 1%
offset-y = -1
radius = 0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 0
line-color = #f00
border-size = 0
border-color = #00000000
padding-left = 0
padding-right = 1
module-margin-left = 2
module-margin-right = 2
font-0 = Roboto:pixelsize=12;4
font-1 = FontAwesome:style=regular:pixelsize=11;4
modules-left = i3 xwindow
modules-center =
modules-right = memory cpu battery date powermenu
tray-position = right
tray-padding = 6
tray-transparent = true
tray-background = #24292A00
wm-restack = i3
override-redirect = false
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
[module/xwindow]
type = internal/xwindow
label = " / %title:0:48:...%"
[module/bspwm]
type = internal/bspwm
label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 3
label-occupied = %index%
label-occupied-padding = 3
label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 3
label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 3
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
;pin-workspaces = true
label-mode-padding = 3
label-mode-foreground = ${colors.background}
label-mode-background = #a8df5a
; focused = Active workspace on focused monitor
label-focused = %icon%
label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding}
; unfocused = Inactive workspace on any monitor
label-unfocused = %icon%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
; visible = Active workspace on unfocused monitor
label-visible = %icon%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %icon%
label-urgent-foreground = ${xrdb:color8}
label-urgent-background = ${module/bspwm.label-urgent-background}
label-urgent-padding = ${module/bspwm.label-urgent-padding}
ws-icon-0 = 1;
ws-icon-1 = 2;
ws-icon-2 = 3;
ws-icon-3 = 4;
ws-icon-default = 
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "cpu "
format-prefix-foreground = ${xrdb:color3}
format-underline = #f90000
label = %percentage%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = "memory "
format-prefix-foreground = ${xrdb:color2}
format-underline = #4bffdc
label = %percentage_used%%
[module/date]
type = internal/date
interval = 1
date =
date-alt = " %d %b -"
time = %H:%M
time-alt = %H:%M:%S
format-prefix = " "
format-prefix-foreground = ${xrdb:color4}
format-underline = #0a6cf5
label = %date% %time%
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC0
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a
label-charging = %percentage%%
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
label-discharging = %percentage%% - time left %time%
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}
label-full = %percentage%%
ramp-capacity-0 = " "
ramp-capacity-1 = " "
ramp-capacity-2 = " "
ramp-capacity-3 = " "
ramp-capacity-4 = " "
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 = " "
animation-charging-1 = " "
animation-charging-2 = " "
animation-charging-3 = " "
animation-charging-4 = " "
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open = 
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${xrdb:color9}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = reboot
menu-0-1 = power off
menu-0-1-exec = poweroff
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini

.Xresources

rofi.modi:          window,drun,run
rofi.sidebar-mode:  true
rofi.theme:         sidestyle.rasi
rofi.show-icons:    false
rofi.drun-icon-theme: Papirus-Dark

.config/rofi/sidestyle.rasi

* {
	text-color:        #ccd2be;
	background-color:  rgba(60, 65, 64, 0.3);
	
	fc-color: #a8b298;
	bg-color: #3c4140;
	fc-color-trans: #69888564;
	bg-color-trans: #3c4140F0;

	font: "Roboto 11";
}

/* ================================================= */
/* Main container                                    */
/* ================================================= */
#window {
	fullscreen:    true;
	location:      center;
	anchor:        center;
	border:        0px 0px 0px 0px;
	transparency:  "real";

	orientation:  horizontal;
	children:     [mainbox, dummy];
    	spacing: 0;
}

/* First container */
#mainbox {
	expand:            false;
	background-color:  @bg-color;
	spacing:           1em;
  	padding:           0px;
  	border: 0px 1px 0px 0px;
	border-color: #666666;
}

/* Dummy container */
#dummy {
	expand: true;
  	background-color: rgba(0, 0, 0, 0.5);
}
/* ================================================= */

/* ================================================= */
/* Sidebar and its elements                          */
/* ================================================= */
#sidebar {
	border:  0px 0px 0px 0px;
}

#button {
	font:       "Roboto 11";
	padding:    0.7em;
}

#button selected {
	font:              "Roboto 11";
	background-color:  @fc-color-trans;
}
/* ================================================= */

/* ================================================= */
/*  Input bar                                        */
/* ================================================= */
#inputbar {
	padding:       1.4em 2em 0 2em;
	spacing:		   0.2em;
}

#prompt {
	font: "Roboto SemiBold 11";
}

#entry {
	font: "Roboto 11";
	width: 24em;
}
/* ================================================= */


/* ================================================= */
/* List view					     */
/* ================================================= */
#listview {
	spacing: 0px;
}

#element {
	font:     "Roboto 11";
	padding:  0.7em 2em 0.7em 2em;
}

#element selected normal {
	background-color: @fc-color-trans;
}

#element normal active {
	background-color: @fc-color-trans;
}

#element normal urgent {
	background-color: Orange;
}

#element alternate normal {
}

#element alternate active {
	text-color: @focus-col;
}

#element alternate urgent {
	background-color: OrangeRed;
}

#element selected active {
	background-color:  @fc-color-trans;
}

#element selected urgent {
	background-color:  DarkOrange;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment